diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7854adf..908d04c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,16 +16,11 @@ jobs: - name: Checkout code uses: actions/checkout@v1 - name: Run tests - run: go test -v -cover ./... -covermode=count -coverprofile=coverage.out -coverpkg=./... - - name: Convert coverage to lcov - uses: jandelgado/gcov2lcov-action@v1.0.0 + run: go test -v ./... -covermode=count -coverprofile=coverage.out -coverpkg=./... + - name: Send coverage if: "matrix.platform == 'ubuntu-latest'" - with: - infile: coverage.out - outfile: coverage.lcov - - name: Coveralls - uses: coverallsapp/github-action@v1.0.1 - if: "matrix.platform == 'ubuntu-latest'" - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: coverage.lcov + env: + COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + GO111MODULE=off go get github.com/mattn/goveralls + $(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=github