Files
arbiter/.github/workflows/ci.yml

68 lines
1.5 KiB
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint-and-format:
name: Lint and Format Check
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x, 22.x, 23.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm run format:check
- name: Run linter
run: pnpm run lint -- --max-warnings 0
continue-on-error: true
test:
name: Tests
needs: lint-and-format
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 21.x, 22.x, 23.x, 24.x]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run unit tests
run: pnpm run test:unit
- name: Run integration tests
run: pnpm run test:integration