-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (50 loc) · 1.18 KB
/
test.yml
File metadata and controls
53 lines (50 loc) · 1.18 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
46
47
48
49
50
51
52
53
name: Test
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
lint:
name: Lint checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install dependencies
run: npm install .
- name: Check dist directory up-to-date
run: npm run build && git diff --exit-code
- name: Run TypeScript checks
run: npx tsc --noEmit
- name: Run lint checks
run: npm run lint
- name: Run unit tests
run: npm run test
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, ubuntu-24.04, ubuntu-latest, windows-latest ]
version: [ latest, 1.12.0, r1.16.2 ]
exclude:
- os: ubuntu-latest
version: 1.12.0
- os: ubuntu-24.04
version: 1.12.0
runs-on: ${{ matrix.os }}
needs: [ lint ]
name: '${{ matrix.os }} / ${{ matrix.version }}'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run Action
uses: ./
with:
version: ${{ matrix.version }}
- name: Test
run: |
nvc --version