name: CI on: push: branches: [ main, develop ] pull_request: branches: [ main, develop ] jobs: lint: name: Lint Code runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20.x cache: npm - run: npm ci - run: npx eslint . --ext .js --max-warnings 0 test: name: Test runs-on: ubuntu-latest strategy: matrix: node-version: [18.x, 20.x] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - run: npm test