forked from PowerShell/PowerShell
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SBOM generation (PowerShell#16641)
# Conflicts: # .vsts-ci/misc-analysis/mdSpell.yml # Conflicts: # .vsts-ci/linux.yml # .vsts-ci/mac.yml # .vsts-ci/windows.yml # prquantifier.yaml # tools/cgmanifest.json # tools/findMissingNotices.ps1 # tools/releaseBuild/azureDevOps/templates/compliance/compliance.yml # tools/releaseBuild/azureDevOps/templates/compliance/generateNotice.yml # tools/releaseBuild/azureDevOps/templates/windows-hosted-build.yml # Conflicts: # .vsts-ci/linux.yml
- Loading branch information
1 parent
f71203b
commit 5616c42
Showing
21 changed files
with
1,786 additions
and
76 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
jobs: | ||
- job: markdown | ||
displayName: Markdown Spelling | ||
|
||
pool: | ||
vmImage: ubuntu-20.04 | ||
|
||
variables: | ||
- name: repoPath | ||
value: $(Agent.BuildDirectory)/$(repoFolder) | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
path: $(repoFolder) | ||
|
||
- checkout: ComplianceRepo | ||
|
||
- powershell: | | ||
Get-ChildItem -Path env: | ||
displayName: Capture Environment | ||
condition: succeededOrFailed() | ||
- bash: | | ||
curl -o- --progress-bar -L https://yarnpkg.com/install.sh | bash | ||
displayName: Bootstrap Yarn | ||
condition: succeededOrFailed() | ||
- bash: | | ||
sudo yarn global add markdown-spellcheck@0.11.0 | ||
displayName: Install mdspell | ||
condition: succeededOrFailed() | ||
- bash: | | ||
mdspell '**/*.md' '!**/Pester/**/*.md' '!**/dotnet-tools/**/*.md' --ignore-numbers --ignore-acronyms --report --en-us; | ||
displayName: Test Spelling in Markdown | ||
condition: succeededOrFailed() | ||
workingDirectory: '$(repoPath)' | ||
- ${{ if not(contains(variables['SYSTEM.COLLECTIONURI'],'mscodehub')) }}: | ||
- pwsh: | | ||
Import-module ./build.psm1 | ||
$path = Join-Path -Path $pwd -ChildPath './commonTestResults.xml' | ||
$results = invoke-pester -Script ./test/common/markdown-lint -OutputFile $path -OutputFormat NUnitXml -PassThru | ||
Write-Host "##vso[results.publish type=NUnit;mergeResults=true;runTitle=Markdown Lint;publishRunAttachments=true;resultFiles=$path;]" | ||
if($results.TotalCount -eq 0 -or $results.FailedCount -gt 0) | ||
{ | ||
throw "Markdown tests failed" | ||
} | ||
displayName: Run Markdown Lint Tests | ||
condition: succeededOrFailed() | ||
workingDirectory: '$(repoPath)' | ||
- template: dailyBuildCompliance.yml@ComplianceRepo | ||
parameters: | ||
sourceScanPath: '$(repoPath)/test/common' |
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
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
Oops, something went wrong.