protect local tspconfig.yaml #169
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.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: 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 |