mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
7079f6c3ae
Bumps the github-actions-dependencies group with 3 updates: [actions/github-script](https://github.com/actions/github-script), [actions/cache](https://github.com/actions/cache) and [actions/upload-artifact](https://github.com/actions/upload-artifact). Updates `actions/github-script` from 8.0.0 to 9.0.0 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/ed597411d8f924073f98dfc5c65a23a2325f34cd...3a2844b7e9c422d3c10d287c895573f7108da1b3) Updates `actions/cache` from 5.0.4 to 5.0.5 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/668228422ae6a00e4ad889ee87cd7109ec5666a7...27d5ce7f107fe9357f9df03efb73ab90386fccae) Updates `actions/upload-artifact` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/bbbca2ddaa5d8feaa63e36b76fdaad77386f024f...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/cache dependency-version: 5.0.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
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
|
|
|