|
13 | 13 |
|
14 | 14 | env: |
15 | 15 | RunNumber: ${{ github.run_number }}.${{ github.run_attempt }} |
| 16 | + VersionSuffix: ci.${{ github.run_number }} |
16 | 17 | SonarCloudProject: csf-dev_CSF.Screenplay |
17 | 18 | SonarCloudUsername: craigfowler-github |
18 | 19 | SonarCloudUrl: https://sonarcloud.io |
|
84 | 85 | /s:$PWD/.sonarqube-analysisproperties.xml |
85 | 86 | - name: Build the solution (one TFM only for performance) |
86 | 87 | run: dotnet build -c ${{ env.Configuration }} --no-incremental -p:TargetFrameworks=${{ env.Tfm }} |
87 | | - - name: Run .NET tests with coverage (one TFM only for performance) |
| 88 | + - name: Run .NET tests with coverage |
88 | 89 | id: dotnet_tests |
89 | 90 | continue-on-error: true |
90 | 91 | run: | |
|
93 | 94 | projNameArray=(${proj//// }) |
94 | 95 | projName=${projNameArray[1]} |
95 | 96 | assemblyPath=$proj/bin/$Configuration/$Tfm/$projName.dll |
96 | | - coverlet "$assemblyPath" --target "dotnet" --targetargs "test $proj -c $Configuration --no-build -p:TargetFramework=$Tfm --logger:nunit --test-adapter-path:." -f=opencover -o="TestResults/$projName.opencover.xml" |
| 97 | + coverlet "$assemblyPath" --target "dotnet" --targetargs "test $proj -c $Configuration --no-build --logger:nunit --test-adapter-path:." -f=opencover -o="TestResults/$projName.opencover.xml" |
97 | 98 | if [ $? -ne 0 ] |
98 | 99 | then |
99 | 100 | echo "failures=true" >> $GITHUB_OUTPUT |
@@ -150,8 +151,13 @@ jobs: |
150 | 151 |
|
151 | 152 | # Build the apps in release mode and publish artifacts |
152 | 153 |
|
153 | | - - name: Build in release configuration |
154 | | - run: dotnet build -c Release |
| 154 | + - name: Build, in release configuration |
| 155 | + run: dotnet pack -p:VersionSuffix=$VersionSuffix -o packages |
| 156 | + - name: Upload build result artifacts |
| 157 | + uses: actions/upload-artifact@v4 |
| 158 | + with: |
| 159 | + name: Build results (NuGet) |
| 160 | + path: packages/*.nupkg |
155 | 161 |
|
156 | 162 | # buildDocs: |
157 | 163 | # TODO: Build the docco site and package the result as an artifact, don't publish it |
|
0 commit comments