Skip to content

Commit 2c0e383

Browse files
committed
Update codecov actions
1 parent 97e475c commit 2c0e383

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed

.github/workflows/emulator-tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,20 @@ 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/codecov-action@v5
104105
with:
105106
token: ${{ secrets.CODECOV_TOKEN }}
106107
flags: emulator
107-
if: github.repository_owner == 'beste'
108+
report_type: test_results
109+
fail_ci_if_error: false
110+
111+
- name: Upload coverage to Codecov
112+
if: ${{ !cancelled() }}
113+
uses: codecov/codecov-action@v5
114+
with:
115+
token: ${{ secrets.CODECOV_TOKEN }}
116+
files: ./coverage.xml
117+
flags: emulator
118+
fail_ci_if_error: false

.github/workflows/integration-tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,20 @@ 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/codecov-action@v5
8889
with:
8990
token: ${{ secrets.CODECOV_TOKEN }}
9091
flags: integration
91-
if: github.repository_owner == 'beste'
92+
report_type: test_results
93+
fail_ci_if_error: false
94+
95+
- name: Upload coverage to Codecov
96+
if: ${{ !cancelled() }}
97+
uses: codecov/codecov-action@v5
98+
with:
99+
token: ${{ secrets.CODECOV_TOKEN }}
100+
files: ./coverage.xml
101+
flags: integration
102+
fail_ci_if_error: false

.github/workflows/tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,20 @@ 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/codecov-action@v5
9192
with:
9293
token: ${{ secrets.CODECOV_TOKEN }}
9394
flags: unit
95+
report_type: test_results
96+
fail_ci_if_error: false
97+
98+
- name: Upload coverage to Codecov
99+
if: ${{ !cancelled() }}
100+
uses: codecov/codecov-action@v5
101+
with:
102+
token: ${{ secrets.CODECOV_TOKEN }}
103+
files: ./coverage.xml
104+
flags: unit
105+
fail_ci_if_error: false

0 commit comments

Comments
 (0)