Skip to content

Commit 9028fa8

Browse files
committed
Update codecov actions
1 parent 42b3563 commit 9028fa8

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

.github/workflows/emulator-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,18 @@ jobs:
9999
XDEBUG_MODE: coverage
100100
run: firebase emulators:exec --only auth,database --project beste-firebase 'XDEBUG_MODE=coverage vendor/bin/phpunit --group=emulator --coverage-clover=coverage.xml --log-junit=test-report.xml'
101101

102-
- name: Upload code coverage
103-
uses: codecov/codecov-action@v5.5.2
102+
- name: Upload test results to Codecov
103+
if: ${{ !cancelled() }}
104+
uses: codecov/test-results-action@v1
104105
with:
105106
token: ${{ secrets.CODECOV_TOKEN }}
106107
flags: emulator
107-
if: github.repository_owner == 'beste'
108+
109+
- name: Upload coverage to Codecov
110+
if: ${{ !cancelled() }}
111+
uses: codecov/codecov-action@v5
112+
with:
113+
token: ${{ secrets.CODECOV_TOKEN }}
114+
files: ./coverage.xml
115+
flags: emulator
116+
fail_ci_if_error: false

.github/workflows/integration-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,18 @@ jobs:
8383
XDEBUG_MODE: coverage
8484
run: vendor/bin/phpunit --testsuite=integration --coverage-clover=coverage.xml --log-junit=test-report.xml --testdox
8585

86-
- name: Upload code coverage
87-
uses: codecov/codecov-action@v5.5.2
86+
- name: Upload test results to Codecov
87+
if: ${{ !cancelled() }}
88+
uses: codecov/test-results-action@v1
8889
with:
8990
token: ${{ secrets.CODECOV_TOKEN }}
9091
flags: integration
91-
if: github.repository_owner == 'beste'
92+
93+
- name: Upload coverage to Codecov
94+
if: ${{ !cancelled() }}
95+
uses: codecov/codecov-action@v5
96+
with:
97+
token: ${{ secrets.CODECOV_TOKEN }}
98+
files: ./coverage.xml
99+
flags: integration
100+
fail_ci_if_error: false

.github/workflows/tests.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,18 @@ jobs:
8686
- name: Run PHPUnit
8787
run: vendor/bin/phpunit --testsuite=unit --coverage-clover=coverage.xml --log-junit=test-report.xml --testdox
8888

89-
- name: Upload code coverage
90-
uses: codecov/codecov-action@v5.5.2
89+
- name: Upload test results to Codecov
90+
if: ${{ !cancelled() }}
91+
uses: codecov/test-results-action@v1
9192
with:
9293
token: ${{ secrets.CODECOV_TOKEN }}
9394
flags: unit
95+
96+
- name: Upload coverage to Codecov
97+
if: ${{ !cancelled() }}
98+
uses: codecov/codecov-action@v5
99+
with:
100+
token: ${{ secrets.CODECOV_TOKEN }}
101+
files: ./coverage.xml
102+
flags: unit
103+
fail_ci_if_error: false

0 commit comments

Comments
 (0)