Skip to content

Merge pull request #23 from itsthelore/claude/extension-verification #98

Merge pull request #23 from itsthelore/claude/extension-verification

Merge pull request #23 from itsthelore/claude/extension-verification #98

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
jobs:
build:
name: typecheck · test · build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm test
- run: npm run build
e2e:
name: runner e2e (real browser)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- name: Seed spec in a real browser
run: npx playwright test
- name: Runner, fidelity, compiler, drive, terminal, and qa-loop integration tests
run: >-
npx vitest run
tests/runner.integration.test.ts
tests/compiler.integration.test.ts
tests/drive.integration.test.ts
tests/drive.claude.integration.test.ts
tests/terminal.integration.test.ts
tests/http.integration.test.ts
tests/qa.integration.test.ts
tests/plan.integration.test.ts
tests/observe.integration.test.ts
tests/extension.integration.test.ts
env:
PROOFKEEPER_E2E: "1"
dco:
name: DCO sign-off
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify every commit has a Signed-off-by trailer
run: |
range="${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"
missing=0
while read -r sha; do
[ -z "$sha" ] && continue
if ! git show -s --format=%B "$sha" | grep -qiE '^Signed-off-by: .+ <.+@.+>'; then
echo "::error::commit $sha is missing a DCO Signed-off-by trailer"
missing=1
fi
done < <(git rev-list "$range")
if [ "$missing" -ne 0 ]; then
echo "All commits must be signed off (git commit -s). See CONTRIBUTING.md."
exit 1
fi
echo "All commits carry a DCO sign-off."