Add blazor skills to dotnet-blazor plugin #925
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: skill-check | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| persist-credentials: false | |
| - name: Cache validator archive | |
| id: cache-validator | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v4 | |
| with: | |
| path: skill-validator-dist.tar.gz | |
| key: skill-validator-${{ runner.os }}-${{ hashFiles('eng/skill-validator/src/**', 'eng/skill-validator/Directory.Build.props', 'global.json') }} | |
| - name: Setup .NET SDK | |
| if: steps.cache-validator.outputs.cache-hit != 'true' | |
| uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5 | |
| with: | |
| global-json-file: global.json | |
| - name: Build skill-validator | |
| if: steps.cache-validator.outputs.cache-hit != 'true' | |
| run: dotnet publish eng/skill-validator/src/SkillValidator.csproj | |
| - name: Create validator archive | |
| if: steps.cache-validator.outputs.cache-hit != 'true' | |
| run: tar -czf skill-validator-dist.tar.gz -C artifacts/publish/SkillValidator/release . | |
| - name: Extract validator | |
| if: steps.cache-validator.outputs.cache-hit == 'true' | |
| run: | | |
| mkdir -p artifacts/publish/SkillValidator/release | |
| tar -xzf skill-validator-dist.tar.gz -C artifacts/publish/SkillValidator/release | |
| - name: Run skill-validator check | |
| run: | | |
| plugin_args=$(for d in plugins/*/; do echo "--plugin $d"; done) | |
| artifacts/publish/SkillValidator/release/skill-validator check \ | |
| $plugin_args \ | |
| --allowed-external-deps eng/allowed-external-deps.txt \ | |
| --known-domains eng/known-domains.txt | |