Skip to content

Commit a538ab4

Browse files
authored
Add PR Validation (#1)
1 parent 058665a commit a538ab4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Cadl PR Validation
2+
on:
3+
pull_request:
4+
branches: [master]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: '14'
14+
15+
- run: node common/scripts/install-run-rush.js install
16+
name: Install JavaScript Dependencies
17+
18+
- run: node packages/cadl-vs/scripts/build.js --restore
19+
name: Restore .NET Dependencies
20+
21+
- run: node common/scripts/install-run-rush.js check
22+
name: Check For Dependency Version Mismatches
23+
24+
- run: node common/scripts/install-run-rush.js rebuild --verbose
25+
name: Build
26+
27+
- run: node common/scripts/install-run-rush.js test-official
28+
name: Test
29+
30+
- run: node common/scripts/install-run-rush.js check-format
31+
name: Check Formatting
32+
33+
- run: node eng/scripts/check-for-changed-files.js
34+
name: Check Git Status For Changed Files

0 commit comments

Comments
 (0)