Skip to content

fix(ci): hard-gate typecheck and test (first-wave portable) #74

fix(ci): hard-gate typecheck and test (first-wave portable)

fix(ci): hard-gate typecheck and test (first-wave portable) #74

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
package:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.32.1
- uses: actions/setup-node@v4
with:
node-version: 22
# No pnpm-lock.yaml in standalone mirrors — caching requires a lockfile.
- name: Install
run: pnpm install --no-frozen-lockfile --ignore-scripts
- name: Build
run: |
if jq -e '.scripts.build // empty' package.json >/dev/null; then
pnpm run build
else
echo 'no build script'
fi
- name: Typecheck
# Hard gate: first-wave mirrors now resolve cleanly standalone.
run: |
if jq -e '.scripts.typecheck // empty' package.json >/dev/null; then
pnpm run typecheck
else
echo 'no typecheck script'
fi
- name: Test
# Hard gate: first-wave packages ship portable vitest/tsup tooling.
run: |
if jq -e '.scripts.test // empty' package.json >/dev/null; then
pnpm run test
else
echo 'no test script'
fi