Run e2e tests locally

This commit is contained in:
Ethan Mosbaugh
2022-06-02 13:41:00 +00:00
parent a0a6a5bf19
commit d3cf4fc7f4
4 changed files with 55 additions and 27 deletions
+1 -26
View File
@@ -104,32 +104,7 @@ jobs:
name: preflight
path: bin/
- run: chmod +x bin/preflight
- run: |
./bin/preflight --interactive=false --format=json examples/preflight/e2e.yaml > result.json
cat result.json
EXIT_STATUS=0
if grep -q "was not collected" result.json; then
echo "Some files were not collected"
EXIT_STATUS=1
fi
if (( `jq '.pass | length' result.json` < 1 )); then
echo "No passing preflights found"
EXIT_STATUS=1
fi
if (( `jq '.warn | length' result.json` > 0 )); then
echo "Warnings found"
EXIT_STATUS=1
fi
if (( `jq '.fail | length' result.json` > 0 )); then
echo "Failed preflights found"
EXIT_STATUS=1
fi
exit $EXIT_STATUS
- run: make e2e-test
compile-supportbundle:
runs-on: ubuntu-latest