From 21939a2e98664bec32dfbe7033ea8d244e3ffbba Mon Sep 17 00:00:00 2001 From: Suparva Date: Tue, 6 Oct 2026 17:29:54 +0530 Subject: [PATCH] ci: add GitHub Actions workflow for lint, build, and tests Set up automated CI matrix running across Node 20 and 22 to verify typechecking, bundling, and vitest unit tests on pushes and pull requests. Co-authored-by: Claude Signed-off-by: Suparva --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..aee8260 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x, 22.x] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run lint + - run: npm run build + - run: npm test \ No newline at end of file