1.3.1 #85
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test on Node ${{ matrix.node-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [22] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build tool for e2e tests | |
run: npm run build | |
- name: Check code formatting | |
run: npm run format:check | |
- name: Run linting | |
run: npm run lint | |
- name: Run typecheck | |
run: npm run typecheck | |
- name: Run unit tests | |
run: npm run test:unit | |
env: | |
NODE_ENV: test | |
- name: Run E2E tests (skipping eval tests if not API key is set) | |
run: npm run test:e2e | |
env: | |
NODE_ENV: test |