Migrate typespec-validation.yml to GH Actions #6
This file contains 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: Validated Impacted Specs | |
on: pull_request | |
jobs: | |
validate-impacted-specs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
# TODO: Refactor common steps into a reusable action | |
- name: Use Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: npm ci | |
shell: pwsh | |
- run: npm ls -a | |
shell: pwsh | |
continue-on-error: true | |
- name: Validate Impacted Specs | |
run: | | |
./eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose | |
Write-Host "LASTEXITCODE: $LASTEXITCODE" | |
shell: pwsh | |
# TODO: Verify this is correct | |
continue-on-error: true |