-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (49 loc) · 1.44 KB
/
pr.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 🧹 Pull request
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
syntax_changelog:
name: Syntax & changelog
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install
run: node common/scripts/install-run-rush.js install
- name: 🏗 Build
run: node common/scripts/install-run-rush.js rebuild
- name: 📝 Verify missing changelogs
run: node common/scripts/install-run-rush.js change --target-branch origin/$GITHUB_BASE_REF --verify -v
- name: 💅 Lint
# --verbose allows to display warnings from ESLint
run: node common/scripts/install-run-rush.js lint --verbose
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
shell: bash
strategy:
matrix:
node_version: [18, 19, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install
run: node common/scripts/install-run-rush.js install
- name: 🏗 Build
run: node common/scripts/install-run-rush.js rebuild
- name: 🐛 Test
run: node common/scripts/install-run-rush.js test