diff --git a/.github/workflows/typespec-validation-all.yaml b/.github/workflows/typespec-validation-all.yaml index 2c802d62e3a7..809b3015b023 100644 --- a/.github/workflows/typespec-validation-all.yaml +++ b/.github/workflows/typespec-validation-all.yaml @@ -34,6 +34,7 @@ jobs: typespec-validation-all: name: TypeSpec Validation All strategy: + fail-fast: false matrix: os: [ubuntu-latest, windows-latest] # shards must start at 0 and increment by 1 @@ -57,13 +58,14 @@ jobs: - name: Validate All Specs run: | + # Keep processing when errors are written. Nonzero exit will mark the + # step as failed. + $ErrorActionPreference = 'Continue' + ./eng/scripts/TypeSpec-Validation.ps1 ` -Shard ${{ matrix.shard }} ` -TotalShards ${{ matrix.total-shards }} ` -CheckAll ` -GitClean ` -Verbose - - # Effectively the same as ignoreLASTEXITCODE: true in Azure DevOps - exit 0 shell: pwsh diff --git a/.github/workflows/typespec-validation.yaml b/.github/workflows/typespec-validation.yaml index 7d955a5e98be..f3780d5b4c06 100644 --- a/.github/workflows/typespec-validation.yaml +++ b/.github/workflows/typespec-validation.yaml @@ -17,8 +17,13 @@ jobs: - name: Validate Impacted Specs run: | + # Keep processing when errors are written. Nonzero exit will mark the + # step as failed. + $ErrorActionPreference = 'Continue' + + eng/scripts/TypeSpec-Requirement.ps1 ` + -BaseCommitish HEAD^ ` + -TargetCommitish HEAD ` + -SpecType ${{ matrix.spec-type }} ./eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose - - # Effectively the same as ignoreLASTEXITCODE: true in Azure DevOps - exit 0 shell: pwsh