-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.1 KB
/
pr-validate.yaml
File metadata and controls
49 lines (38 loc) · 1.1 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
name: pr-validate
on:
pull_request:
permissions:
contents: read
concurrency:
group: pr-validate-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Rush dependencies
run: npm run rush:install
- name: Verify Rush change files
env:
TARGET_BRANCH: origin/${{ github.base_ref }}
run: >
node common/scripts/install-run-rush.js change
--verify
--target-branch "$TARGET_BRANCH"
--no-fetch
- name: Build packages
run: npm run rush:build
- name: Lint packages
run: npm run rush:lint
- name: Test packages
run: node common/scripts/install-run-rush.js test --parallelism 1
- name: Verify packages
run: node common/scripts/install-run-rush.js verify --parallelism 1