Skip to content

Add Node 26 to CI and pin actions to hashes (#16) #95

Add Node 26 to CI and pin actions to hashes (#16)

Add Node 26 to CI and pin actions to hashes (#16) #95

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
BROWSERTEST_NODE_VERSION: 24.x
DEFAULT_NODE_VERSION: 26.x
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ env.DEFAULT_NODE_VERSION }}
- run: corepack enable
- run: yarn install --immutable
- run: yarn run lint
node:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 22.x
- 24.x
- 26.x
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- run: corepack enable
- run: yarn install --immutable
- run: yarn run build
- run: yarn vitest run --project node --coverage
- uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.github_token }}
flag-name: node-${{ matrix.node-version }}
parallel: true
browser:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
browser:
- chromium
- firefox
- webkit
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ env.BROWSERTEST_NODE_VERSION }}
- run: corepack enable
- run: yarn install --immutable
- run: yarn run build
- run: yarn playwright install --with-deps ${{ matrix.browser }}
- run: yarn vitest run --project ${{ matrix.browser }} --coverage
- uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.github_token }}
flag-name: browser-${{ matrix.browser }}
parallel: true
coveralls:
needs:
- node
- browser
runs-on: ubuntu-latest
steps:
- uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true