-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (76 loc) · 2.58 KB
/
ci.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
on:
pull_request:
branches: [ "main", "development" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Rush
uses: actions/cache@v2
with:
path: |
common/temp/install-run
~/.rush
key: ${{ runner.os }}-${{ hashFiles('rush.json') }}
- name: Cache pnpm
uses: actions/cache@v2
with:
path: |
common/temp/pnpm-store
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
#- name: Verify Change Logs
# run: node common/scripts/install-run-rush.js change --verify
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Rush build
run: node common/scripts/install-run-rush.js build --to tag:ci --verbose
- name: Rush List
run: node common/scripts/install-run-rush.js list --only git:HEAD~1
- name: Run Lint
run: node common/scripts/install-run-rush.js lint --from git:HEAD~1 --verbose
- name: Run Deps
run: node common/scripts/install-run-rush.js deps --from git:HEAD~1 --verbose
- name: Run DepCheck
run: node common/scripts/install-run-rush.js depcheck --from git:HEAD~1 --verbose
- name: Run Check
run: node common/scripts/install-run-rush.js check --verbose
unit_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Rush
uses: actions/cache@v2
with:
path: |
common/temp/install-run
~/.rush
key: ${{ runner.os }}-${{ hashFiles('rush.json') }}
- name: Cache pnpm
uses: actions/cache@v2
with:
path: |
common/temp/pnpm-store
key: ${{ runner.os }}-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Rush Install
run: node common/scripts/install-run-rush.js install
- name: Rush rebuild
run: node common/scripts/install-run-rush.js build --to tag:ci --verbose
- name: Rush List
run: node common/scripts/install-run-rush.js list --only git:HEAD~1
- name: Run Test
run: node common/scripts/install-run-rush.js test --from git:HEAD~1 --verbose