Skip to content

Commit 61f904d

Browse files
committed
add enabled flags
1 parent 7751da7 commit 61f904d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,27 @@ jobs:
2929
run: yarn test
3030

3131
- name: Upload coverage to OtterWise
32+
if: ${{ !cancelled() && process.env.OTTERWISE_ENABLED == 'true' }}
3233
uses: getOtterWise/github-action@v1
3334
with:
3435
token: ${{ secrets.OTTERWISE_TOKEN }}
3536

3637
- name: Upload coverage to Coveralls
38+
if: ${{ !cancelled() && process.env.COVERALLS_ENABLED == 'true' }}
3739
uses: coverallsapp/github-action@v2
3840
with:
3941
# github-token: ${{ secrets.GITHUB_TOKEN }}
4042
format: lcov
4143
file: ./coverage/lcov.info
4244

4345
- name: Upload coverage to Codecov
46+
if: ${{ !cancelled() && process.env.CODECOV_ENABLED == 'true' }}
4447
uses: codecov/codecov-action@v5
4548
with:
4649
token: ${{ secrets.CODECOV_TOKEN }}
4750

4851
- name: Upload test results to Codecov
49-
if: ${{ !cancelled() }}
52+
if: ${{ !cancelled() && process.env.CODECOV_ENABLED == 'true' }}
5053
uses: codecov/test-results-action@v1
5154
with:
5255
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)