Skip to content

chore: updated GitHub actions to make node tests run against all supp… #17

chore: updated GitHub actions to make node tests run against all supp…

chore: updated GitHub actions to make node tests run against all supp… #17

Workflow file for this run

name: CI
permissions:
contents: read
pull-requests: read
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Node.js
uses: ./.github/actions/node-setup
- name: Run type check
run: npm run check-types
format:
name: Format check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup environment (node + install)
uses: ./.github/actions/node-setup
- name: Run format check
run: npx prettier . --check
test-browser:
name: Run browser tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup environment (node + install)
uses: ./.github/actions/node-setup
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run browser tests
run: npm run test:browser
test-node:
name: Run node tests (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 22, 23, 24, 25]
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup environment (node + install)
uses: ./.github/actions/node-setup
with:
node-version: ${{ matrix.node-version }}
- name: Run node tests
run: npm run test:node