Skip to content

chore: get canary up to date with main #390

chore: get canary up to date with main

chore: get canary up to date with main #390

Workflow file for this run

name: CI
on:
push:
branches: [main, canary]
pull_request:
branches: [main, canary]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
strategy:
matrix:
node-version: [22, 24]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Check bundle size
run: npm run size
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-node-${{ matrix.node-version }}
path: test/unit/reports/
- name: Cache build artifacts
uses: actions/cache/save@v4
if: github.ref == 'refs/heads/main'
with:
path: |
dist
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}