Skip to content

Merge pull request #294 from cuthbertLab/agents #646

Merge pull request #294 from cuthbertLab/agents

Merge pull request #294 from cuthbertLab/agents #646

Workflow file for this run

name: CI
on:
push:
branches:
- master
- '*CI*'
pull_request:
branches:
- '*'
workflow_dispatch: {}
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run typecheck
frontend_tests:
runs-on: ubuntu-latest
env:
PLAYWRIGHT_BROWSERS_PATH: /home/runner/.cache/ms-playwright
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- uses: actions/cache@v4
id: playwright-cache
with:
path: /home/runner/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
- run: npx playwright install --with-deps chromium
- run: npm run test
build:
runs-on: ubuntu-latest
needs: [eslint, typecheck, frontend_tests]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build