Skip to content

Commit a5a7681

Browse files
ci: GitHub Actions (build · typecheck · test) + badge (#12)
* ci: add GitHub Actions workflow (build · typecheck · test) + README badge Runs pnpm install (frozen) → build → typecheck → test on push to main and on every PR, across Node 20 and 22. Gives the existing branch protection real teeth: a red PR is now visibly failing. Concurrency cancels superseded runs. (Codex review #12.) Mark this check "required" in branch protection once it has run once to make green CI a hard merge gate. * ci: let pnpm/action-setup read version from packageManager (fix conflict)
1 parent eebfac8 commit a5a7681

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
# Cancel superseded runs on the same ref.
10+
concurrency:
11+
group: ci-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build-test:
16+
name: build · typecheck · test
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
node-version: [20, 22]
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
# Version comes from package.json "packageManager" — do NOT also
26+
# set `version:` here, or action-setup errors on the conflict.
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
30+
- name: Set up Node ${{ matrix.node-version }}
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: pnpm
35+
36+
- name: Install dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
# build before typecheck/test: cross-package imports resolve from
40+
# each package's built dist/ (tsup output).
41+
- name: Build
42+
run: pnpm -r build
43+
44+
- name: Typecheck
45+
run: pnpm -r typecheck
46+
47+
- name: Test
48+
run: pnpm -r test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ASIL — Autonomous Software Improvement Loop
22

3+
[![CI](https://github.com/telivity-otaip/asil/actions/workflows/ci.yml/badge.svg)](https://github.com/telivity-otaip/asil/actions/workflows/ci.yml)
4+
35
> Scan a codebase. Find issues. Generate fixes. Review them three times. Stop when domain expertise is required. Open a PR only when every gate passes.
46
57
ASIL is the open-source extract of a production autonomous coding pipeline. It is the first publicly-available system that pairs autonomous code generation with **multi-gate review, cost control, and a domain-expertise boundary** — so the loop knows when to keep working and when to stop and ask a human.

0 commit comments

Comments
 (0)