Files
shakespeare/.ngit/act/workflows/test.yml
T
Alex Gleason a20fab1ab4 Publish shakespeare.diy as an nsite from ngit-ci
Replaces the GitLab deploy and deploy-nsite jobs. The old nsite job published
under a personal npub; the signing pubkey is the site address, so this one
lives in the Team Soapbox namespace and is served by npanel.
2026-08-17 01:33:45 -05:00

32 lines
810 B
YAML

name: Test
# Typecheck / lint / unit tests / production build for the Shakespeare client.
# ngit-ci watches .ngit/act/workflows/ and runs each job with `act` (GitHub
# Actions-compatible syntax) in a Linux container. Runs on every push and on
# every Nostr PR.
on:
push:
branches: ["**"]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
# package.json splits these: "typecheck" is tsc --noEmit and "test" is
# eslint + vitest. The GitLab job ran typecheck, build and test; keep all
# three so a type error still fails CI.
- run: npm run typecheck
- run: npm run build
- run: npm run test