Files
u-claw/.github/workflows/tests.yml
zheng 0be8c3e3fe
All checks were successful
Tests / test (push) Successful in 55s
ci: 将 workflow 的 runs-on 改为 internal_docker
自托管 Gitea runner 只注册了 internal_docker 标签,ubuntu-latest 会导致 job 永远排队。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 14:03:48 +08:00

32 lines
967 B
YAML

name: Tests
# Copy of .gitea/workflows/tests.yml, kept for if we ever move back to GitHub.
# Gitea reads both locations but which one a given instance scans depends on its
# config, so the workflow lives in .gitea/ and this is the mirror.
# tests/ci-parity.test.mjs keeps the two running the same thing.
on:
push:
branches: ['**']
pull_request:
workflow_dispatch:
jobs:
test:
# Self-hosted Gitea runners are registered as internal_docker, not ubuntu-latest.
runs-on: internal_docker
container:
image: node:22.22.1
steps:
- uses: actions/checkout@v4
- name: Node version
run: node --version
- name: Generated files are up to date
run: node portable/lib/i18n/build-messages.mjs --check
- name: Tests
# Bare `node --test` discovers **/*.test.mjs. `node --test tests/` fails
# with "Cannot find module" — Node reads the path as a module, not a dir.
run: node --test