Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 81bb56a

Browse files
authored
Simplify Jest runs in CI to share failures with merge queue (#103)
Signed-off-by: Michael Telatynski <[email protected]>
1 parent fe402e2 commit 81bb56a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/tests.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,17 @@ jobs:
8989
coverage
9090
!coverage/lcov-report
9191
92-
skip_sonar:
93-
name: Skip SonarCloud in merge queue
94-
if: github.event_name == 'merge_group' || inputs.disable_coverage == 'true'
95-
runs-on: ubuntu-latest
92+
complete:
93+
name: jest-tests
9694
needs: jest
95+
if: always()
96+
runs-on: ubuntu-latest
9797
steps:
98-
- name: Skip SonarCloud
98+
- if: needs.jest.result != 'skipped' && needs.jest.result != 'success'
99+
run: exit 1
100+
101+
- name: Skip SonarCloud in merge queue
102+
if: github.event_name == 'merge_group' || inputs.disable_coverage == 'true'
99103
uses: Sibz/github-status-action@faaa4d96fecf273bd762985e0e7f9f933c774918 # v1
100104
with:
101105
authToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)