Skip to content

Merge pull request #36 from freshworkstudio/v2 #3

Merge pull request #36 from freshworkstudio/v2

Merge pull request #36 from freshworkstudio/v2 #3

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm run build
- run: npm test
# ESLint 10 requires Node >= 20.19, above the package's runtime floor (18.17),
# so linting runs once on a modern Node instead of inside the matrix.
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint