Skip to content

ci

ci #968

Workflow file for this run

on:
pull_request:
merge_group:
name: ci
jobs:
tests:
strategy:
matrix:
node: [18, 20]
os: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: corepack enable && corepack prepare
# Note: actions/setup-node doesn't yet provide parameters for corepack, we need to run it again after enabling it
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: node --version
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm lint
- name: Run tests
run: pnpm test