From 7d0f3229ea416359b690a4c93e5578644fe6304d Mon Sep 17 00:00:00 2001 From: TuvalZit18 <18tuvalzit18@gmail.com> Date: Sat, 17 Oct 2026 19:34:19 +0300 Subject: [PATCH] Add GitHub Actions CI workflow Run typecheck, lint, test and build on every pull request and on pushes to main. Changes that touch only Markdown, docs, editor or Claude Code settings, LICENSE or .gitignore skip the workflow. Node version comes from .nvmrc; npm dependencies are cached. A newer run on the same ref cancels the one in progress. --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 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..fe9a32a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + pull_request: + paths-ignore: + - '**/*.md' + - 'docs/**' + - '.claude/**' + - '.vscode/**' + - 'LICENSE' + - '.gitignore' + push: + branches: [main] + paths-ignore: + - '**/*.md' + - 'docs/**' + - '.claude/**' + - '.vscode/**' + - 'LICENSE' + - '.gitignore' + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-node@v7 + with: + node-version-file: .nvmrc + cache: npm + + - run: npm ci + - run: npm run typecheck + - run: npm run lint + - run: npm test + - run: npm run build