aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: c35c66ae8b24e8267a97f8c307c20f908c5a8b58 (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: ['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