From 8cb9c7b86a24114bce7759db1e12bf4ed966539c Mon Sep 17 00:00:00 2001 From: Shubham Sinha Date: Sat, 2 Jan 2021 12:42:04 +0530 Subject: [PATCH] updated workflow --- .github/workflows/go.yml | 13 +++++++------ .gitignore | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 03e7c8a..a12bb6c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,12 +30,13 @@ jobs: dep ensure fi - name: Run tests - run: go test -v -covermode=count - - name: Coveralls GitHub Action - uses: coverallsapp/github-action@v1.1.2 + run: go test -v -coverprofile=profile.cov ./... + - name: Send coverage + uses: shogo82148/actions-goveralls@v1 with: + path-to-profile: profile.cov github-token: ${{ secrets.COVERALLS_TOKEN }} - flag-name: ${{ matrix.platform }}-node-${{ matrix.go-version }} + flag-name: ${{ matrix.platform }}-go-${{ matrix.go-version }} parallel: true finish: @@ -43,8 +44,8 @@ jobs: runs-on: ubuntu-latest needs: [test] steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@v1.1.2 + - name: Sending coverage finished + uses: shogo82148/actions-goveralls@v1 with: github-token: ${{ secrets.COVERALLS_TOKEN }} parallel-finished: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..717fcea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.cov