From e2f71f57d322791d9cc92cea5ac7ae7ba504c6a4 Mon Sep 17 00:00:00 2001 From: jean Date: Thu, 15 Aug 2024 17:41:47 +0200 Subject: [PATCH] chore: add ci --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..e016e73 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-test-lint: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + node-version: [22] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install --ignore-scripts + + - name: Run linter + run: npm run lint + + - name: Build the project + run: npm run build + + - name: Run tests + run: npm test