Skip to content

Commit cd75644

Browse files
committed
fix: update CI workflow to handle missing secrets gracefully, add conditional upload for coverage reports, and enhance Codecov action configuration.
1 parent 656ed89 commit cd75644

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,20 @@ jobs:
4242
- name: Run tests
4343
run: npm test -- --coverage
4444
env:
45-
SNIP_GIST_TOKEN: ${{ secrets.SNIP_GIST_TOKEN }}
45+
SNIP_GIST_TOKEN: ${{ secrets.SNIP_GIST_TOKEN || '' }}
4646

4747
- name: Run sql.js smoke
4848
run: npm run smoke-sqljs
4949

5050
- name: Upload coverage
51+
if: matrix.os == 'ubuntu-latest' && matrix.node == '20.x'
5152
uses: codecov/codecov-action@v5
5253
with:
53-
token: ${{ secrets.CODECOV_TOKEN }}
54+
token: ${{ secrets.CODECOV_TOKEN || '' }}
5455
files: ./coverage/coverage-final.json
5556
flags: unittests
57+
fail_ci_if_error: false
58+
verbose: true
5659

5760
lint:
5861
name: Lint

0 commit comments

Comments
 (0)