mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
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.
32 lines
810 B
YAML
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
|