ci.yml: fix workflow trigger (#19) #12
This file contains 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: CI checks | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run typecheck | |
- run: npm run lint | |
- run: npm run lint:docs | |
- run: npm run test | |
- name: Check that commit contains build artifacts | |
run: | | |
npm run build | |
git diff --exit-code || (echo "Error: changes detected after build." && exit 1) |