-
Notifications
You must be signed in to change notification settings - Fork 51
58 lines (46 loc) · 1.42 KB
/
test.yaml
File metadata and controls
58 lines (46 loc) · 1.42 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
54
55
56
57
58
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu, windows]
node-version: [20, 24]
exclude:
- os: ubuntu
node-version: 24
- os: windows
node-version: 20
runs-on: ${{ fromJSON('{"ubuntu":"ubuntu-24.04", "windows":"windows-2022"}')[matrix.os] }}
steps:
- uses: actions/checkout@v6
- name: Use Node ${{ matrix.node-version }}.x
uses: actions/setup-node@v6
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
- name: rush pack
if: contains(matrix.os, 'ubuntu')
run: node common/scripts/install-run-rush.js pack
- name: Upload npm packages
if: contains(matrix.os, 'ubuntu')
uses: actions/upload-artifact@v6
with:
name: packages
path: |
packages/**/*.tgz
!packages/**/node_modules/**
if-no-files-found: error