|
98 | 98 | - name: Run unit tests with coverage |
99 | 99 | run: | |
100 | 100 | dotnet test --configuration ${{ env.BUILD_CONFIGURATION }} --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings --filter "Category!=Integration" --logger trx --results-directory ${{ runner.temp }} |
101 | | - continue-on-error: ${{ contains(fromJSON('["Experimental", "Alpha"]'), env.BUILD_CONFIGURATION) }} |
| 101 | + continue-on-error: ${{ contains(fromJSON('["Experimental", "Alpha", "Debug"]'), env.BUILD_CONFIGURATION) || startsWith(github.ref, 'refs/heads/feature/') || startsWith(github.ref, 'refs/heads/experimental/') || github.ref == 'refs/heads/develop' }} |
102 | 102 |
|
103 | 103 | - name: Generate coverage report |
104 | 104 | if: always() |
@@ -134,11 +134,12 @@ jobs: |
134 | 134 | name: Security Scanning |
135 | 135 | runs-on: windows-latest |
136 | 136 | needs: validate |
137 | | - if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/beta/') || startsWith(github.ref, 'refs/heads/release/') |
| 137 | + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/beta/') || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/experimental/') || startsWith(github.ref, 'refs/heads/feature/') |
138 | 138 | permissions: |
139 | 139 | actions: read |
140 | 140 | contents: read |
141 | 141 | security-events: write |
| 142 | + continue-on-error: ${{ startsWith(github.ref, 'refs/heads/feature/') || startsWith(github.ref, 'refs/heads/experimental/') || github.ref == 'refs/heads/develop' }} |
142 | 143 | env: |
143 | 144 | BUILD_CONFIGURATION: ${{ github.ref == 'refs/heads/master' && 'Release' || github.ref == 'refs/heads/develop' && 'Alpha' || startsWith(github.ref, 'refs/heads/beta/') && 'Beta' || startsWith(github.ref, 'refs/heads/release/') && 'Preview' || 'Alpha' }} |
144 | 145 | steps: |
@@ -188,14 +189,16 @@ jobs: |
188 | 189 | publish-packages: |
189 | 190 | name: Publish Packages |
190 | 191 | runs-on: windows-latest |
191 | | - needs: [build, security-scan] |
| 192 | + needs: [build] |
192 | 193 | if: | |
193 | 194 | github.event_name == 'push' && |
194 | 195 | (github.ref == 'refs/heads/master' || |
195 | 196 | github.ref == 'refs/heads/main' || |
196 | 197 | github.ref == 'refs/heads/develop' || |
197 | 198 | startsWith(github.ref, 'refs/heads/beta/') || |
198 | | - startsWith(github.ref, 'refs/heads/release/')) |
| 199 | + startsWith(github.ref, 'refs/heads/release/') || |
| 200 | + startsWith(github.ref, 'refs/heads/experimental/') || |
| 201 | + startsWith(github.ref, 'refs/heads/feature/')) |
199 | 202 | steps: |
200 | 203 | - name: Download packages |
201 | 204 | uses: actions/download-artifact@v4 |
|
0 commit comments