Skip to content

Commit cca9f73

Browse files
remove token
1 parent b8cf7ed commit cca9f73

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/pr-checks.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,23 @@ jobs:
3535
- name: Checkout Git Repository
3636
uses: actions/checkout@v3
3737

38-
- name: Unit Tests with Code Coverage
38+
- name: Run Go Tests
39+
run: make test
40+
41+
- name: Check format
3942
run: |
40-
make test
43+
if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then
44+
echo "not well formatted sources are found"
45+
exit 1
46+
fi
4147
42-
- name: Upload Code Coverage Report
43-
uses: codecov/codecov-action@v3
48+
- name: Generate coverage report
49+
run: |
50+
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
51+
52+
- name: Upload coverage report
53+
uses: codecov/codecov-action@v1
4454
with:
45-
token: ${{ secrets.CODECOV_TOKEN }}
46-
file: cover.out
47-
verbose: true
48-
fail_ci_if_error: true
55+
file: ./coverage.txt
56+
flags: unittests
57+
name: codecov-umbrella

0 commit comments

Comments
 (0)