Bump xunit from 2.4.1 to 2.6.2 #356
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- microbuild | |
- validate/* | |
pull_request: | |
env: | |
TreatWarningsAsErrors: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
BUILDCONFIGURATION: Release | |
codecov_token: c8862aaf-0c6d-48ee-a4a7-e88af58ef469 | |
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages/ | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
- name: ⚙ Install prerequisites | |
run: | | |
./init.ps1 -UpgradePrerequisites | |
dotnet --info | |
shell: pwsh | |
- name: ⚙️ Set pipeline variables based on source | |
run: azure-pipelines/variables/_pipelines.ps1 | |
shell: pwsh | |
- name: ⚙️ Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: ⚙️ Prepare Visual Studio | |
run: '&"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe" /RootSuffix Exp /ResetSettings General.vssettings /Command File.Exit' | |
- name: 🛠 build | |
run: msbuild /t:Build /p:Configuration=${{ env.BUILDCONFIGURATION }} /v:m /bl:"${{ runner.temp }}/_artifacts/build_logs/build.binlog" | |
- name: pack | |
run: msbuild /t:Pack /p:Configuration=${{ env.BUILDCONFIGURATION }} /v:m /bl:"${{ runner.temp }}/_artifacts/build_logs/pack.binlog" | |
- name: 🧪 test | |
run: dotnet test --no-build -c ${{ env.BUILDCONFIGURATION }} /bl:"${{ runner.temp }}/_artifacts/build_logs/test.binlog" --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true /m:1 --diag "${{ runner.temp }}/_artifacts/test_logs/diag.log;TraceLevel=info" --logger trx --settings "${{ github.workspace }}/.github/workflows/${{ runner.os }}.runsettings" | |
- name: 🧪 Test EqualExceptionLegacy | |
run: test/EqualExceptionLegacy/Test.ps1 -binlog ${{ runner.temp }}/_artifacts/build_logs/EqualExceptionLegacy.binlog | |
shell: pwsh | |
- name: ⚙ Update pipeline variables based on build outputs | |
run: azure-pipelines/variables/_pipelines.ps1 | |
shell: pwsh | |
- name: 📥 Collect artifacts | |
run: azure-pipelines/artifacts/_stage_all.ps1 | |
shell: pwsh | |
if: always() | |
- name: 📢 Upload project.assets.json files | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: projectAssetsJson-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/projectAssetsJson | |
continue-on-error: true | |
- name: 📢 Upload variables | |
uses: actions/upload-artifact@v1 | |
with: | |
name: variables-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/Variables | |
continue-on-error: true | |
- name: 📢 Upload build_logs | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: build_logs-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/build_logs | |
continue-on-error: true | |
- name: 📢 Upload testResults | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: testResults-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/testResults | |
continue-on-error: true | |
- name: 📢 Upload rawTestResults | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: rawTestResults-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/rawTestResults | |
continue-on-error: true | |
- name: 📢 Upload coverageResults | |
if: always() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: coverageResults-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/coverageResults | |
continue-on-error: true | |
- name: 📢 Upload symbols | |
uses: actions/upload-artifact@v1 | |
with: | |
name: symbols-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/symbols | |
continue-on-error: true | |
- name: 📢 Upload deployables | |
uses: actions/upload-artifact@v1 | |
with: | |
name: deployables-${{ runner.os }} | |
path: ${{ runner.temp }}/_artifacts/deployables | |
if: always() | |
- name: 📢 Publish code coverage results to codecov.io | |
run: ./azure-pipelines/publish-CodeCov.ps1 -CodeCovToken "${{ env.codecov_token }}" -PathToCodeCoverage "${{ runner.temp }}/_artifacts/coverageResults" -Name "${{ runner.os }} Coverage Results" -Flags "${{ runner.os }}Host,${{ env.BUILDCONFIGURATION }}" | |
shell: pwsh | |
timeout-minutes: 3 | |
continue-on-error: true | |
if: always() |