name: Build and test project 🔧💉

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [22.x, 24.x]
    steps:
    - uses: actions/checkout@v7.0.1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v7.0.0
      with:
        node-version: ${{ matrix.node-version }}
        cache: 'npm'
    - run: npm ci
    - name: Run the tests 👀
      run: npm run test:ci
