-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.11 KB
/
main.yml
File metadata and controls
45 lines (41 loc) · 1.11 KB
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
37
38
39
40
41
42
43
44
45
name: Main
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
matrix:
node_version: [18, 20, 22]
steps:
- uses: actions/checkout@v5
- uses: aboutbits/github-actions-node/setup-and-install@v3
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://npm.pkg.github.com'
registry-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Lint
run: npm run lint
shell: bash
- name: Typecheck
run: npm run typecheck
shell: bash
test:
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
matrix:
node_version: [18, 20, 22]
steps:
- uses: actions/checkout@v5
- uses: aboutbits/github-actions-node/setup-and-install@v3
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://npm.pkg.github.com'
registry-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Test
run: npm run test
shell: bash