Remove unnecessary use of resource type #5
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: TypeSpec Validation | ||
| on: pull_request | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| typespec-validation: | ||
| name: TypeSpec Validation | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| # Checkout all history for all branches. Required to merge origin/main. | ||
| fetch-depth: 0 | ||
| - name: git merge origin/main | ||
| run: git -c user.name="azure-sdk" -c user.email="[email protected]" merge -Xours origin/main | ||
| - name: Setup Node and install deps | ||
| uses: ./.github/actions/setup-node-install-deps | ||
| - name: Validate Impacted Specs | ||
| run: | | ||
| # Keep processing when errors are written. Nonzero exit will mark the | ||
| # step as failed. | ||
| $ErrorActionPreference = 'Continue' | ||
| # Only "main" and "RPSaaSMaster" should validate all specs if core files change | ||
| $ignoreCoreFiles = -not (@('main', 'RPSaaSMaster') -contains $Env:GITHUB_BASE_REF) | ||
| ./eng/scripts/TypeSpec-Validation.ps1 -GitClean -Verbose -BaseCommitish:HEAD~1 -HeadCommitish:HEAD~2 | ||
| shell: pwsh | ||