Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@ on:
branches: [main]
pull_request:

# These jobs only read the repository; the Codecov upload authenticates with
# its own token rather than the workflow token.
permissions:
contents: read

# Superseded runs on a PR are pointless — the 6-job matrix keeps runners busy
# for a result nobody will look at. Pushes to main still run to completion.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
checks:
name: Lint, typecheck & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: npm
Expand All @@ -20,7 +31,7 @@ jobs:
- run: npm run typecheck
- run: npm run build
- run: npm run test:coverage
- uses: codecov/codecov-action@v5
- uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5
with:
files: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -35,8 +46,8 @@ jobs:
node: [20, 22, 24]
react: [18, 19]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node }}
cache: npm
Expand Down