Skip to content

Commit a106c1a

Browse files
authored
GitHub: Force to run tests regardless of the build job outcome (#14028)
1 parent ecdbf29 commit a106c1a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
}
7272
continue-on-error: true
7373

74-
- name: Fail the job if the XamlStyler found unformatted file(s)
74+
- name: Fail if necessary
7575
if: steps.check-step.outcome == 'failure'
7676
run: exit 1
7777

@@ -174,6 +174,7 @@ jobs:
174174
path: ${{ env.ARTIFACTS_STAGING_DIR }}
175175

176176
test:
177+
if: always()
177178
needs: [build]
178179
runs-on: windows-latest
179180
strategy:
@@ -189,6 +190,10 @@ jobs:
189190

190191
steps:
191192

193+
- if: contains(join(needs.*.result, ','), 'failure')
194+
name: Fail if necessary
195+
run: exit 1
196+
192197
- name: Checkout the repository
193198
uses: actions/checkout@v3
194199

0 commit comments

Comments
 (0)