Skip to content

Commit

Permalink
Merge pull request #525 from catatsuy/feature-update-ci-workflow-add-…
Browse files Browse the repository at this point in the history
…benchmark-output-check

Update CI workflow to save benchmark output and check results with jq
  • Loading branch information
catatsuy authored Aug 18, 2024
2 parents a00822e + 6f8ac70 commit f791602
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ jobs:
continue-on-error: true
run: |
cd benchmarker
docker run --network host --add-host host.docker.internal:host-gateway -i private-isu-benchmarker /bin/benchmarker -t http://host.docker.internal -u /opt/userdata || echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV
docker run --network host --add-host host.docker.internal:host-gateway -i private-isu-benchmarker /bin/benchmarker -t http://host.docker.internal -u /opt/userdata | tee benchmark_output.json || echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV
- name: Check benchmark result
run: |
cat benchmark_output.json | jq '.pass' | grep false && echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV || true
- name: Show logs
run: |
Expand Down

0 comments on commit f791602

Please sign in to comment.