Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test-sdk.yml & test-emitter.yml from Azure Pipeline to GitHub Action #1405

Merged
merged 5 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/test-emitter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
42 changes: 42 additions & 0 deletions .github/workflows/test-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: test-sdk

on:
pull_request:
branches:
- main
jobs:
test-sdk:
runs-on: ubuntu-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 autorest & rush
run: |
npm install -g "autorest"
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: Verify SDK generator
shell: pwsh
working-directory: tests-upgrade/tests-sdk1-support
run: |
./AutoRestSupportSdkTest.ps1 -AllowList -SkipCsharp
- name: Save artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: CompareResult
path: tests-upgrade/tests-sdk1-support/CompareResult
if-no-files-found: warn
retention-days: 7
Loading