logicsrc/.github/workflows/test.yml
Anthony Ettinger d0c6752194 ci: build workspaces before running tests; set PUBLIC_URL=https://logicsrc.com
The 'test' workflow ran 'npm test' without building, so dependents could not
resolve @logicsrc/plugin-core / @logicsrc/validators (they publish from dist/).
Build first. Also document PUBLIC_URL (canonical site URL) in .env.example.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 03:51:00 +00:00

31 lines
560 B
YAML

name: test
on:
pull_request:
push:
branches: [master]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: npm ci
# Workspace packages (e.g. @logicsrc/plugin-core, @logicsrc/validators)
# publish from dist/, so dependents can't resolve them until built.
- run: npm run build
- run: npm test
env:
CI: true