Skip to content

Commit ec07102

Browse files
committed
Add gates to the lints
1 parent bb3306a commit ec07102

File tree

3 files changed

+60
-27
lines changed

3 files changed

+60
-27
lines changed

.github/dependabot.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,33 @@ jobs:
8989
cache_key: ${{ github.run_id }}
9090
secrets:
9191
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
92+
93+
all_tests_passed:
94+
name: All tests passed
95+
runs-on: ubuntu-latest
96+
needs:
97+
- build
98+
- build_test
99+
- build_baseimage_test
100+
- populate_cache
101+
- check_cache
102+
if: always()
103+
steps:
104+
- name: Verify all required jobs succeeded
105+
run: |
106+
echo "build: ${{ needs.build.result }}"
107+
echo "build_test: ${{ needs.build_test.result }}"
108+
echo "build_baseimage_test: ${{ needs.build_baseimage_test.result }}"
109+
echo "populate_cache: ${{ needs.populate_cache.result }}"
110+
echo "check_cache: ${{ needs.check_cache.result }}"
111+
112+
if [[ "${{ needs.build.result }}" != "success" ]] ||
113+
[[ "${{ needs.build_test.result }}" != "success" ]] ||
114+
[[ "${{ needs.build_baseimage_test.result }}" != "success" ]] ||
115+
[[ "${{ needs.populate_cache.result }}" != "success" ]] ||
116+
[[ "${{ needs.check_cache.result }}" != "success" ]]; then
117+
echo "❌ One or more jobs failed"
118+
exit 1
119+
fi
120+
121+
echo "✅ All jobs succeeded"

.github/workflows/test_legacy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,33 @@ jobs:
8787
cache_key: ${{ github.run_id }}
8888
secrets:
8989
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
90+
91+
all_tests_passed:
92+
name: All tests passed legacy
93+
runs-on: ubuntu-latest
94+
needs:
95+
- build
96+
- build_test
97+
- build_baseimage_test
98+
- populate_cache
99+
- check_cache
100+
if: always()
101+
steps:
102+
- name: Verify all required jobs succeeded
103+
run: |
104+
echo "build: ${{ needs.build.result }}"
105+
echo "build_test: ${{ needs.build_test.result }}"
106+
echo "build_baseimage_test: ${{ needs.build_baseimage_test.result }}"
107+
echo "populate_cache: ${{ needs.populate_cache.result }}"
108+
echo "check_cache: ${{ needs.check_cache.result }}"
109+
110+
if [[ "${{ needs.build.result }}" != "success" ]] ||
111+
[[ "${{ needs.build_test.result }}" != "success" ]] ||
112+
[[ "${{ needs.build_baseimage_test.result }}" != "success" ]] ||
113+
[[ "${{ needs.populate_cache.result }}" != "success" ]] ||
114+
[[ "${{ needs.check_cache.result }}" != "success" ]]; then
115+
echo "❌ One or more jobs failed"
116+
exit 1
117+
fi
118+
119+
echo "✅ All jobs succeeded"

0 commit comments

Comments
 (0)