From 6108724863cdf42f53520b5abce9306b23afcc1f Mon Sep 17 00:00:00 2001 From: catatsuy Date: Sun, 29 Dec 2024 17:13:41 +0900 Subject: [PATCH] efactor benchmark run command for better readability in CI workflow --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d0b95747..8fbce90bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,7 +91,20 @@ jobs: - name: Run the benchmark continue-on-error: true 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 + 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: |