From ca35e3666b97c0c8a85c3dad752b92d3e74340bd Mon Sep 17 00:00:00 2001 From: Piyush Patel Date: Thu, 20 Aug 2026 13:29:21 +0530 Subject: [PATCH] Add GitHub Actions CI pipeline for automated testing across Node 20, 22, and 24 --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..fb6eabb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI/CD Build & Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x, 22.x, 24.x] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run ESLint + run: npm run lint + + - name: Build TypeScript package + run: npm run build + + - name: Run Unit Tests + run: npm test + + - name: Run E2E Integration Tests + run: npm run test:e2e