aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 5ac0da20c0559ad986975affd041d84716043fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: ci

on:
  - push
  - pull_request

jobs:
  build:
    runs-on: ubuntu-24.04
    strategy:
      matrix:
        node: ['24', '22', '20', '18']
    name: Node ${{ matrix.node }} CI
    steps:
      - uses: actions/checkout@v4

      - name: Setup node
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node }}

      - name: npm install, build, lint, and test
        run: |
          npm ci
          npm run build
          npm run lint
          npm test
        env:
          CI: true