github-action-benchmark
github-action-benchmark copied to clipboard
github action continue after error in `foo | tee output.txt`
if you use run cargo +nightly bench | tee output.txt
exit code 0 will be returned if cargo exit with an error, because tee has exit successful. So github action continue after the error and does not fail.
The readme/example should suggest
- name: Run benchmark
run: |
set -eo pipefail
cargo +nightly bench | tee output.txt
instead of
- name: Run benchmark
run: cargo +nightly bench | tee output.txt
Same for the other languages.