name: CI on: push: branches: - main - next pull_request: branches: - main - next permissions: contents: read jobs: lint: name: Checks - ${{ matrix.os }} - Node v${{ matrix.node-version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: os: [ubuntu-latest] node-version: [lts/*] runs-on: ${{ matrix.os }} concurrency: group: lint-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }} cancel-in-progress: true steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: node-version: ${{ matrix.node-version }} package-manager-cache: false - name: Install Pnpm uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: run_install: true - name: Run checks run: pnpm run check - name: Build run: pnpm run build - name: Check types run: if [ -n "$(git status types --porcelain)" ]; then echo "Missing types. Update types by running 'pnpm run build'"; exit 1; else echo "All types are valid"; fi test: name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }} strategy: matrix: os: [ubuntu-latest, windows-latest] node-version: [22.20.0, 24.x] runs-on: ${{ matrix.os }} concurrency: group: test-${{ matrix.os }}-v${{ matrix.node-version }}-${{ github.ref }} cancel-in-progress: true steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6 with: node-version: ${{ matrix.node-version }} package-manager-cache: false - name: Install Pnpm uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: run_install: true - name: Run tests run: pnpm run test