Skip to content

Commit e68ee34

Browse files
authoredMay 31, 2023
[chore] Add parent job that can check the matrix (#1769)
* Add parent job that can check the matrix * Add check job for scorecard-tests * fix scorecard check
1 parent a684f36 commit e68ee34

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
 

‎.github/workflows/e2e.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,20 @@ jobs:
5050
env:
5151
KUBE_VERSION: ${{ matrix.kube-version }}
5252
run: make e2e-log-operator KUBE_VERSION=$KUBE_VERSION
53+
54+
e2e-tests-check:
55+
runs-on: ubuntu-20.04
56+
if: always()
57+
needs: [e2e-tests]
58+
steps:
59+
- name: Print result
60+
run: echo ${{ needs.e2e-tests.result }}
61+
- name: Interpret result
62+
run: |
63+
if [[ success == ${{ needs.e2e-tests.result }} ]]
64+
then
65+
echo "All matrix jobs passed!"
66+
else
67+
echo "One or more matrix jobs failed."
68+
false
69+
fi

‎.github/workflows/scorecard.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,20 @@ jobs:
4343

4444
- name: "run scorecard test"
4545
run: make scorecard-tests
46+
47+
scorecard-tests-check:
48+
runs-on: ubuntu-20.04
49+
if: always()
50+
needs: [scorecard-tests]
51+
steps:
52+
- name: Print result
53+
run: echo ${{ needs.scorecard-tests.result }}
54+
- name: Interpret result
55+
run: |
56+
if [[ success == ${{ needs.scorecard-tests.result }} ]]
57+
then
58+
echo "All matrix jobs passed!"
59+
else
60+
echo "One or more matrix jobs failed."
61+
false
62+
fi

0 commit comments

Comments
 (0)