Run ROM-free CI on the available Forgejo runner (#45)

This commit is contained in:
kawa committed 2026-10-03 18:15:51 +02:00
1 parent f34068f7df
commit 4082a9a2d3
3 files changed
+39 -21

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
name: Checks
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
web:
# The shared Docker-Builder1 runner advertises this label.
runs-on: docker-build
container:
image: node:22-bookworm
timeout-minutes: 20
env:
# Keep ROM-dependent tests local, even if the runner has a ROM elsewhere.
CRYSTAL_ROM_PATH: /nonexistent/crystal-ci.gbc
steps:
- uses: https://github.com/actions/checkout@v4
with:
persist-credentials: false
- name: Verify the no-ROM test environment
run: test ! -e "$CRYSTAL_ROM_PATH"
- run: npm ci
- run: npm run check:vendor
- name: Synthetic unit tests
run: npm test -- --maxWorkers=2
- run: npm run build
- run: npm run check:release
- run: npm run build:reference
- run: npx playwright install --with-deps chromium webkit
- name: Browser tests without a ROM
run: npm run test:e2e -- --workers=2