Skip to content

Commit

Permalink
ci: Cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Jul 31, 2024
1 parent 791bfa9 commit 36f2f05
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/verify-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ jobs:
verify:
runs-on: envoy-x64-small
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: |
sudo apt-get update
sudo apt-get install -y -qq --no-install-recommends expect
bazel run --sandbox_writable_path="${HOME}/.docker/" --sandbox_writable_path=$HOME :verify_examples
cat bazel-bin/brotli_result.txt
12 changes: 6 additions & 6 deletions verify_examples.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

RESULTS=()
ERRORS=()

trim () {
text=$(< /dev/stdin)
Expand All @@ -11,15 +10,16 @@ for result in "$@"; do
RESULT=$(head -n1 "$result")
NAME=$(echo $RESULT | cut -d: -f1 | trim)
EXITCODE=$(echo $RESULT | cut -d: -f2 | trim)
OUTCOME="passed"
if [[ $EXITCODE != 0 ]]; then
ERROR=$(tail -n +2 $result)
ERRORS+=($ERROR)
# ERROR=$(tail -n +2 $result)
# ERRORS+=($ERROR)
cat $result
OUTCOME="failed"
fi
RESULTS+=("$NAME: $EXITCODE")
RESULTS+=("${NAME}: ${OUTCOME} (${EXITCODE})")
done

# echo "${ERRORS[@]}"

for result in "${RESULTS[@]}"; do
echo "$result"
done

0 comments on commit 36f2f05

Please sign in to comment.