26 lines
577 B
YAML
26 lines
577 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Test
|
|
run: npm test
|
|
|
|
# The app is static files, so a broken manifest or service worker only shows up on a phone.
|
|
- name: Manifest and scripts parse
|
|
run: |
|
|
node -e "JSON.parse(require('fs').readFileSync('public/manifest.webmanifest','utf8'))"
|
|
for f in public/*.js; do node --check "$f"; done
|