Maintain strict CI checks. Codecov rate limiting should be resolved by maintainers adding CODECOV_TOKEN to repository secrets. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
25 lines
546 B
YAML
25 lines
546 B
YAML
name: CI
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
test:
|
|
name: Node.js ${{ matrix.node-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version:
|
|
- 18
|
|
- 16
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm test
|
|
- uses: codecov/codecov-action@v2
|
|
if: matrix.node-version == 16
|
|
with:
|
|
fail_ci_if_error: true
|