From 4bdf11332875daad37291731f6acec1871c57891 Mon Sep 17 00:00:00 2001 From: Ander Date: Tue, 4 Aug 2026 09:36:25 +0200 Subject: [PATCH] ci: add GitHub Actions workflow (typecheck + test on node 20/22) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repo had no CI, so every green was verified only locally. Add a minimal workflow that runs on pushes to main and on every PR: npm ci → typecheck → build+test (the `test` script builds first), across node 20 and 22 (engines require >=20). This guards the public @zenrows/cli against a red PR landing. Independent of the in-flight stack (new file, off main) so it can merge on its own and start protecting every subsequent PR. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aad202c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: [20, 22] + name: node ${{ matrix.node }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: npm + - run: npm ci + - run: npm run typecheck + - run: npm test