Skip to content

Commit

Permalink
[chore] Add parent job that can check the matrix (#1769)
Browse files Browse the repository at this point in the history
* Add parent job that can check the matrix

* Add check job for scorecard-tests

* fix scorecard check
  • Loading branch information
TylerHelmuth authored May 31, 2023
1 parent a684f36 commit e68ee34
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ jobs:
env:
KUBE_VERSION: ${{ matrix.kube-version }}
run: make e2e-log-operator KUBE_VERSION=$KUBE_VERSION

e2e-tests-check:
runs-on: ubuntu-20.04
if: always()
needs: [e2e-tests]
steps:
- name: Print result
run: echo ${{ needs.e2e-tests.result }}
- name: Interpret result
run: |
if [[ success == ${{ needs.e2e-tests.result }} ]]
then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
false
fi
17 changes: 17 additions & 0 deletions .github/workflows/scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,20 @@ jobs:

- name: "run scorecard test"
run: make scorecard-tests

scorecard-tests-check:
runs-on: ubuntu-20.04
if: always()
needs: [scorecard-tests]
steps:
- name: Print result
run: echo ${{ needs.scorecard-tests.result }}
- name: Interpret result
run: |
if [[ success == ${{ needs.scorecard-tests.result }} ]]
then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
false
fi

0 comments on commit e68ee34

Please sign in to comment.