Skip to content

Commit 16b0784

Browse files
Merge pull request #929 from multiversx/workflows-06-05
Fix test coverage upload
2 parents e80d556 + 76d5738 commit 16b0784

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/code-coverage.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ jobs:
3333
fi
3434
- name: Run unit tests
3535
run: |
36-
TESTS_TO_RUN=$(go list ./... | grep -v /integrationTests/ | grep -v /fuzz/ | grep -v /mandos-go/json/integrationTests | grep -v /mandos-go/expression/integrationTests)
36+
TESTS_TO_RUN=$(go list ./... | grep -v /integrationTests/ | grep -v /fuzz/)
3737
go test -short -cover -coverprofile=coverage.txt -covermode=atomic -v ${TESTS_TO_RUN}
3838
3939
- name: Upload coverage
40-
run: bash <(curl -s https://codecov.io/bash) -f coverage.txt -y codecov.yml
41-
40+
uses: codecov/codecov-action@v5
41+
with:
42+
fail_ci_if_error: true
43+
files: coverage.txt
44+
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
ignore:
2-
- "**/*.pb.go" # wildcards accepted
3-
2+
- "**/*.pb.go"

0 commit comments

Comments
 (0)