From 253d86c296e5b2917a7e66ffeb52db25d4e66367 Mon Sep 17 00:00:00 2001 From: AdekunleBamz Date: Fri, 23 Jan 2026 19:32:26 +0100 Subject: [PATCH] Add CI workflow for automated testing and building - Add GitHub Actions CI workflow to run lint and build on push and PR - Ensures code quality and prevents build failures --- .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..2679d24 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.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 \ No newline at end of file