mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-10 22:56:14 +01:00
Add GitHub Action for super-lint (#618)
This commit is contained in:
@@ -10,14 +10,14 @@ trigger: none
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: self
|
||||
type: git
|
||||
ref: refs/heads/main
|
||||
- repository: testRepo
|
||||
name: walbourn/directxtextest
|
||||
type: github
|
||||
endpoint: microsoft
|
||||
ref: refs/heads/main
|
||||
- repository: self
|
||||
type: git
|
||||
ref: refs/heads/main
|
||||
- repository: testRepo
|
||||
name: walbourn/directxtextest
|
||||
type: github
|
||||
endpoint: microsoft
|
||||
ref: refs/heads/main
|
||||
|
||||
pool:
|
||||
vmImage: windows-latest
|
||||
@@ -54,39 +54,39 @@ variables:
|
||||
value: ${{ parameters.commitID }}
|
||||
|
||||
jobs:
|
||||
- job: prod
|
||||
displayName: Prod Task
|
||||
workspace:
|
||||
clean: all
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
fetchTags: false
|
||||
fetchDepth: 1
|
||||
path: 's'
|
||||
- checkout: testRepo
|
||||
displayName: Fetch Tests
|
||||
clean: true
|
||||
fetchTags: false
|
||||
fetchDepth: 1
|
||||
path: 's/Tests'
|
||||
- powershell: |
|
||||
Write-Host "Job ID: $(job-ID), Build Date: $(build-date), Branch: $(branch)"
|
||||
$SASUrl = [System.Uri]::new("$(sas-url)")
|
||||
azcopy cp $SASUrl.AbsoluteUri ./ --recursive
|
||||
$ContainerName = $SASURL.LocalPath.Split("/")[1]
|
||||
Write-Host "##vso[task.setvariable variable=container-name;]$ContainerName"
|
||||
cd $ContainerName
|
||||
$size = ((Get-Item .\$(coverage-file)).length)
|
||||
if ($size -eq 0) {
|
||||
Write-Host "Cobertura coverage XML is empty."
|
||||
exit 1
|
||||
}
|
||||
displayName: 'Get code coverage from OneFuzz'
|
||||
- job: prod
|
||||
displayName: Prod Task
|
||||
workspace:
|
||||
clean: all
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
fetchTags: false
|
||||
fetchDepth: 1
|
||||
path: 's'
|
||||
- checkout: testRepo
|
||||
displayName: Fetch Tests
|
||||
clean: true
|
||||
fetchTags: false
|
||||
fetchDepth: 1
|
||||
path: 's/Tests'
|
||||
- powershell: |
|
||||
Write-Host "Job ID: $(job-ID), Build Date: $(build-date), Branch: $(branch)"
|
||||
$SASUrl = [System.Uri]::new("$(sas-url)")
|
||||
azcopy cp $SASUrl.AbsoluteUri ./ --recursive
|
||||
$ContainerName = $SASURL.LocalPath.Split("/")[1]
|
||||
Write-Host "##vso[task.setvariable variable=container-name;]$ContainerName"
|
||||
cd $ContainerName
|
||||
$size = ((Get-Item .\$(coverage-file)).length)
|
||||
if ($size -eq 0) {
|
||||
Write-Host "Cobertura coverage XML is empty."
|
||||
exit 1
|
||||
}
|
||||
displayName: 'Get code coverage from OneFuzz'
|
||||
|
||||
- task: PublishCodeCoverageResults@1
|
||||
inputs:
|
||||
codeCoverageTool: 'Cobertura'
|
||||
summaryFileLocation: ./$(container-name)\$(coverage-file)
|
||||
pathToSources: $(Build.SourcesDirectory)
|
||||
displayName: 'Generate coverage report'
|
||||
- task: PublishCodeCoverageResults@1
|
||||
inputs:
|
||||
codeCoverageTool: 'Cobertura'
|
||||
summaryFileLocation: ./$(container-name)\$(coverage-file)
|
||||
pathToSources: $(Build.SourcesDirectory)
|
||||
displayName: 'Generate coverage report'
|
||||
|
||||
Reference in New Issue
Block a user