From 4aa9b94a05a95f4d2a18e758f6f59956b083e435 Mon Sep 17 00:00:00 2001 From: Asim Awdah Date: Fri, 13 Nov 2026 01:07:40 +0300 Subject: [PATCH] ci: add automated quality checks --- .github/workflows/node-ci.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/node-ci.yml diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml new file mode 100644 index 0000000..c5dfe14 --- /dev/null +++ b/.github/workflows/node-ci.yml @@ -0,0 +1,42 @@ +name: Node.js CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: node-ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + quality: + name: Type-check, test, and build + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Check out source + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Type-check + run: npm run typecheck + + - name: Run tests + run: npm test + + - name: Build package + run: npm run build