32 lines
524 B
YAML
32 lines
524 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
|
|
- name: Install
|
|
run: npm ci
|
|
|
|
- name: Typecheck (src + tests)
|
|
run: npm run typecheck
|
|
|
|
- name: Unit + local e2e tests
|
|
run: npm test
|
|
|
|
- name: Build
|
|
run: npm run build
|