Skip to content

Commit 9fe1c41

Browse files
authored
Make test-with-coverage.yml workflow run in push events to master branch (codeready-toolchain#727)
* Make test-with-coverage.yml workflow run in push events to master branch * Change path for uploading coverage.txt artifact * Add flags: unittests option
1 parent 9402ae8 commit 9fe1c41

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/test-with-coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: test-with-coverage
22
on:
33
pull_request:
44
branches: [ master ]
5+
push:
6+
branches:
7+
- master
8+
tags-ignore:
9+
- '*.*'
510

611
jobs:
712
test:

.github/workflows/upload-coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
uses: codecov/codecov-action@v5
2323
with:
2424
token: ${{ secrets.CODECOV_TOKEN }}
25-
files: build/_output/coverage/coverage.txt
25+
# The 'files' attribute consists of 'coverage/coverage.txt'.
26+
# The 'coverage' directory is created upon the download of the coverage artifact from previous step (it creates a directory with the name of the artifact).
27+
files: coverage/coverage.txt
28+
flags: unittests # optional
2629
fail_ci_if_error: true
2730

0 commit comments

Comments
 (0)