cobalt/.github/workflows/test.yml

34 lines
757 B
YAML
Raw Normal View History

name: Run tests
on:
pull_request:
push:
jobs:
check-lockfile:
name: check lockfile correctness
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-08-03 10:32:42 +01:00
- uses: pnpm/action-setup@v4
- name: Check that lockfile does not need an update
2024-08-03 10:29:29 +01:00
run: pnpm install --frozen-lockfile
test-web:
name: web sanity check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
2024-08-03 10:52:46 +01:00
node-version: 'lts/*'
2024-08-03 10:32:42 +01:00
- uses: pnpm/action-setup@v4
- run: .github/test.sh web
test-api:
name: api sanity check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-08-03 10:32:42 +01:00
- uses: pnpm/action-setup@v4
- run: .github/test.sh api