-
Notifications
You must be signed in to change notification settings - Fork 155
36 lines (36 loc) · 770 Bytes
/
ci.yml
File metadata and controls
36 lines (36 loc) · 770 Bytes
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
30
31
32
33
34
35
36
name: CI
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
matrix:
node:
- '22'
- '20'
- '18'
name: Test using node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- name: Install Node ${{ matrix.node }}
shell: bash -eo pipefail -l {0}
run: |
nvm install --default ${{ matrix.node }}
dirname "$(nvm which ${{ matrix.node }})" >> "$GITHUB_PATH"
- name: Install
run: npm i
- name: Test
run: npm t
- name: Check types
run: npm run check-types