Skip to content

Commit a3a0e61

Browse files
authored
Merge pull request #15 from hyperlight-dev/ci-umbrella-check
ci: add umbrella checks and smart path filtering
2 parents f4ab6d5 + 91371a0 commit a3a0e61

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/benchmarks.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,3 +444,19 @@ jobs:
444444
Write-Host "| Disk usage | ${diskMiB} MiB |"
445445
Write-Host ""
446446
Write-Host "::notice::snapshot: apparent=${apparentMiB}MiB disk=${diskMiB}MiB"
447+
448+
all-checks-passed:
449+
if: always()
450+
needs: [build-image, bench-linux, bench-windows]
451+
runs-on: ubuntu-latest
452+
permissions: {}
453+
steps:
454+
- run: |
455+
results=("${{ needs.build-image.result }}" "${{ needs.bench-linux.result }}" "${{ needs.bench-windows.result }}")
456+
for r in "${results[@]}"; do
457+
if [[ "$r" != "success" && "$r" != "skipped" ]]; then
458+
echo "Job failed with result: $r"
459+
exit 1
460+
fi
461+
done
462+
echo "All checks passed"

.github/workflows/host-checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ concurrency:
2828
jobs:
2929
checks:
3030
runs-on: ubuntu-latest
31+
permissions:
32+
contents: read
3133
timeout-minutes: 25
3234
defaults:
3335
run:
@@ -71,3 +73,19 @@ jobs:
7173
# skip themselves if /dev/kvm isn't available.
7274
RUST_BACKTRACE: '1'
7375
run: cargo test --all-targets --locked
76+
77+
all-checks-passed:
78+
if: always()
79+
needs: [checks]
80+
runs-on: ubuntu-latest
81+
permissions: {}
82+
steps:
83+
- run: |
84+
results=("${{ needs.checks.result }}")
85+
for r in "${results[@]}"; do
86+
if [[ "$r" != "success" && "$r" != "skipped" ]]; then
87+
echo "Job failed with result: $r"
88+
exit 1
89+
fi
90+
done
91+
echo "All checks passed"

.github/workflows/test-examples.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
workflow_dispatch:
55
pull_request:
66
branches: [main]
7+
paths:
8+
- 'examples/**'
9+
- 'runtimes/**'
10+
- 'host/**'
11+
- '.github/workflows/test-examples.yml'
712
push:
813
branches: [main]
914
paths:
@@ -738,3 +743,19 @@ jobs:
738743
Write-Error "FAIL: expected >=5 pandas_ok lines, got $hits"
739744
exit 1
740745
}
746+
747+
all-checks-passed:
748+
if: always()
749+
needs: [build-example, runtime-test, package-images-for-windows, runtime-test-windows, pyhl-snapshot-test]
750+
runs-on: ubuntu-latest
751+
permissions: {}
752+
steps:
753+
- run: |
754+
results=("${{ needs.build-example.result }}" "${{ needs.runtime-test.result }}" "${{ needs.package-images-for-windows.result }}" "${{ needs.runtime-test-windows.result }}" "${{ needs.pyhl-snapshot-test.result }}")
755+
for r in "${results[@]}"; do
756+
if [[ "$r" != "success" && "$r" != "skipped" ]]; then
757+
echo "Job failed with result: $r"
758+
exit 1
759+
fi
760+
done
761+
echo "All checks passed"

0 commit comments

Comments
 (0)