-
Notifications
You must be signed in to change notification settings - Fork 85
46 lines (45 loc) · 1.23 KB
/
test-emitter.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
name: test-emitter
on:
pull_request:
branches:
- main
jobs:
test-emitter:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install typespec & rush
run: |
npm install -g "@typespec/compiler"
npm install -g @microsoft/[email protected]
- name: Rush sync-versions
run: |
rush sync-versions
- name: Rush Update
run: |
rush update
- name: Rush Rebuild
run: |
rush rebuild
- name: Run npm install in tests-emitter
working-directory: tests-upgrade/tests-emitter
run: |
npm install
- name: Verify Typespec emitter
shell: pwsh
working-directory: tests-upgrade/tests-emitter
run: |
./EmitterTest.ps1 -AllowList -SaveResult
- name: Save artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: CompareResult
path: tests-upgrade/tests-emitter/CompareResult
if-no-files-found: warn
retention-days: 7