mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 22:37:29 +00:00
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>
31 lines
560 B
YAML
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
|