mstruebing / tldr

Golang command line client for tldr https://github.com/tldr-pages/tldr
MIT License
262 stars 24 forks source link

GitHub actions #66

Closed AlexNDRmac closed 11 months ago

AlexNDRmac commented 11 months ago

What I did:

As I've asked about errors during test, so I've created workaround while you implementing changes to solve test issues.

What you need to change after fix the tests:

this

     - name: Run tests with coverage report
        run: |
            # Uncomment next line after fox tests
            # make test

            # and remove lines bellow after fixing tests
            echo "" > coverage.txt
            for d in $(go list ./... | grep -v vendor); do
                go test -race -coverprofile=profile.out -covermode=atomic -skip "TestRender|TestWrite|TestMarkdown" $d
                if [ -f profile.out ]; then
                    cat profile.out >> coverage.txt
                    rm profile.out
                fi
            done

change to this

     - name: Run tests with coverage report
        run: make test
AlexNDRmac commented 11 months ago

@mstruebing please check PR. I've created workaround to avoid test fail. After fixes with tests - you can remove this workaround and use the full test suite.