1- name : CI
1+ name : 🏭 Build
22
33on :
44 push :
55 branches :
6- - main
7- - microbuild
8- - validate/*
6+ - main
7+ - ' v*.*'
8+ - microbuild
9+ - validate/*
910 pull_request :
11+ workflow_dispatch :
1012
1113env :
1214 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
1618
1719jobs :
1820 build :
21+ name : 🏭 Build
1922
2023 runs-on : ${{ matrix.os }}
2124 strategy :
@@ -41,75 +44,28 @@ jobs:
4144 }
4245 shell : pwsh
4346 - name : ⚙️ Set pipeline variables based on source
44- run : azure-pipelines /variables/_pipelines .ps1
47+ run : tools /variables/_define .ps1
4548 shell : pwsh
4649 - name : 🛠 build
4750 run : dotnet build -t:build,pack --no-restore -c ${{ env.BUILDCONFIGURATION }} -warnAsError -warnNotAsError:NU1901,NU1902,NU1903,NU1904 /bl:"${{ runner.temp }}/_artifacts/build_logs/build.binlog"
4851 - name : 🧪 test
49- run : azure-pipelines /dotnet-test-cloud.ps1 -Configuration ${{ env.BUILDCONFIGURATION }} -Agent ${{ runner.os }}
52+ run : tools /dotnet-test-cloud.ps1 -Configuration ${{ env.BUILDCONFIGURATION }} -Agent ${{ runner.os }}
5053 shell : pwsh
51- - name : ⚙ Update pipeline variables based on build outputs
52- run : azure-pipelines/variables/_pipelines.ps1
54+ - name : 💅🏻 Verify formatted code
55+ run : dotnet format --verify-no-changes --no-restore
5356 shell : pwsh
54- - name : 📥 Collect artifacts
55- run : azure-pipelines/artifacts/_stage_all.ps1
57+ if : runner.os == 'Linux'
58+ - name : 📚 Verify docfx build
59+ run : dotnet docfx docfx/docfx.json --warningsAsErrors --disableGitFeatures
60+ if : runner.os == 'Linux'
61+ - name : ⚙ Update pipeline variables based on build outputs
62+ run : tools/variables/_define.ps1
5663 shell : pwsh
57- if : always()
58- - name : 📢 Upload project.assets.json files
59- if : always()
60- uses : actions/upload-artifact@v4
61- with :
62- name : projectAssetsJson-${{ runner.os }}
63- path : ${{ runner.temp }}/_artifacts/projectAssetsJson
64- continue-on-error : true
65- - name : 📢 Upload variables
66- uses : actions/upload-artifact@v4
67- with :
68- name : variables-${{ runner.os }}
69- path : ${{ runner.temp }}/_artifacts/Variables
70- continue-on-error : true
71- - name : 📢 Upload build_logs
72- if : always()
73- uses : actions/upload-artifact@v4
74- with :
75- name : build_logs-${{ runner.os }}
76- path : ${{ runner.temp }}/_artifacts/build_logs
77- continue-on-error : true
78- - name : 📢 Upload test_logs
79- if : always()
80- uses : actions/upload-artifact@v4
81- with :
82- name : test_logs-${{ runner.os }}
83- path : ${{ runner.temp }}/_artifacts/test_logs
84- continue-on-error : true
85- - name : 📢 Upload testResults
86- if : always()
87- uses : actions/upload-artifact@v4
88- with :
89- name : testResults-${{ runner.os }}
90- path : ${{ runner.temp }}/_artifacts/testResults
91- continue-on-error : true
92- - name : 📢 Upload coverageResults
93- if : always()
94- uses : actions/upload-artifact@v4
95- with :
96- name : coverageResults-${{ runner.os }}
97- path : ${{ runner.temp }}/_artifacts/coverageResults
98- continue-on-error : true
99- - name : 📢 Upload symbols
100- uses : actions/upload-artifact@v4
101- with :
102- name : symbols-${{ runner.os }}
103- path : ${{ runner.temp }}/_artifacts/symbols
104- continue-on-error : true
105- - name : 📢 Upload deployables
106- uses : actions/upload-artifact@v4
107- with :
108- name : deployables-${{ runner.os }}
109- path : ${{ runner.temp }}/_artifacts/deployables
110- if : always()
64+ - name : 📢 Publish artifacts
65+ uses : ./.github/actions/publish-artifacts
66+ if : cancelled() == false
11167 - name : 📢 Publish code coverage results to codecov.io
112- 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 }}"
68+ run : ./tools /publish-CodeCov.ps1 -CodeCovToken "${{ env.codecov_token }}" -PathToCodeCoverage "${{ runner.temp }}/_artifacts/coverageResults" -Name "${{ runner.os }} Coverage Results" -Flags "${{ runner.os }}"
11369 shell : pwsh
11470 timeout-minutes : 3
11571 continue-on-error : true
0 commit comments