Skip to content

Commit

Permalink
remove token
Browse files Browse the repository at this point in the history
Signed-off-by: mehabhalodiya <[email protected]>
  • Loading branch information
mehabhalodiya committed Oct 30, 2023
1 parent b8cf7ed commit 6cfe2c6
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,37 @@ jobs:
- name: Checkout Git Repository
uses: actions/checkout@v3

- name: Unit Tests with Code Coverage
- name: Run Go Tests
run: make test

- name: Check format
run: |
make test
if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then
echo "not well formatted sources are found"
exit 1
fi
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v3
- name: Generate coverage report
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella

- name: Get code coverage artifiact
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: code-coverage
- name: Get test result artifact
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: test-results
path: test-results
- name: Upload code coverage information to codecov.io
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: cover.out
verbose: true
fail_ci_if_error: true
file: coverage.out

0 comments on commit 6cfe2c6

Please sign in to comment.