-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (34 loc) · 1009 Bytes
/
test.yaml
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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18, 20]
exclude:
- os: ubuntu-latest
node-version: 20
- os: windows-latest
node-version: 18
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node ${{ matrix.node-version }}.x
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}.x
- name: rush install
run: node common/scripts/install-run-rush.js install
- name: rush build
run: node common/scripts/install-run-rush.js build --verbose
- name: rush lint
run: node common/scripts/install-run-rush.js lint
- name: rush test
run: node common/scripts/install-run-rush.js test
- name: rush regen-ruleindex
run: node common/scripts/install-run-rush.js regen-ruleindex