Simplify Jest runs in CI to share failures with merge queue (#103)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
fe402e28bb
commit
81bb56ae2b
1 changed files with 9 additions and 5 deletions
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
|
@ -89,13 +89,17 @@ jobs:
|
||||||
coverage
|
coverage
|
||||||
!coverage/lcov-report
|
!coverage/lcov-report
|
||||||
|
|
||||||
skip_sonar:
|
complete:
|
||||||
name: Skip SonarCloud in merge queue
|
name: jest-tests
|
||||||
if: github.event_name == 'merge_group' || inputs.disable_coverage == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: jest
|
needs: jest
|
||||||
|
if: always()
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Skip SonarCloud
|
- if: needs.jest.result != 'skipped' && needs.jest.result != 'success'
|
||||||
|
run: exit 1
|
||||||
|
|
||||||
|
- name: Skip SonarCloud in merge queue
|
||||||
|
if: github.event_name == 'merge_group' || inputs.disable_coverage == 'true'
|
||||||
uses: Sibz/github-status-action@faaa4d96fecf273bd762985e0e7f9f933c774918 # v1
|
uses: Sibz/github-status-action@faaa4d96fecf273bd762985e0e7f9f933c774918 # v1
|
||||||
with:
|
with:
|
||||||
authToken: ${{ secrets.GITHUB_TOKEN }}
|
authToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue