From 052e03a2db2f69a754749ad6ad069bdf1c45bd6b Mon Sep 17 00:00:00 2001 From: catatsuy Date: Sat, 21 Dec 2024 13:26:14 +0900 Subject: [PATCH] Add log display step to CI workflow after benchmarks execution --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24d97f09b..6d0b95747 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,6 +93,11 @@ jobs: run: | docker container run --add-host host.docker.internal:host-gateway -p 5678:5678 -p 7890:7890 -i isucari-benchmarker /bin/benchmarker -target-url http://host.docker.internal -data-dir /initial-data -static-dir /static -payment-url http://host.docker.internal:5678 -payment-port 5678 -shipment-url http://host.docker.internal:7890 -shipment-port 7890 | tee benchmark_output.json || echo "BENCHMARK_FAILED=true" >> $GITHUB_ENV + - name: Show logs + run: | + cd webapp + docker compose logs + - name: Check benchmark result run: | if [ ! -f benchmark_output.json ]; then @@ -104,11 +109,6 @@ jobs: exit 1 fi - - name: Show logs - run: | - cd webapp - docker compose logs - - name: Fail if benchmark failed if: env.BENCHMARK_FAILED == 'true' run: |