From b99c7e4cf3509ae34dc74e3cbeda9ccc7f83ca51 Mon Sep 17 00:00:00 2001 From: Johan LEROY <113677147+JohanLeroy@users.noreply.github.com> Date: Mon, 8 Dec 2025 14:14:33 +0100 Subject: [PATCH] Add GitHub Actions CI configuration Set up CI workflow for testing and linting --- .github/workflows/main.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 159bfa6..2a24c67 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,26 @@ -npm ci -npm test -npm run lint +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test