From 311ec28cf6465577b0e31ba937a6694bc0905025 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Mon, 7 Oct 2024 12:01:20 +0200 Subject: [PATCH] Use `--fail-with-body` to fail the job if curl fails. --- .github/workflows/graalpy-micronaut-guide.yml | 4 ++-- .github/workflows/graalpy-micronaut-pygal-charts.yml | 4 ++-- .github/workflows/graalpy-spring-boot-guide.yml | 4 ++-- .github/workflows/graalwasm-micronaut-photon.yml | 2 +- .github/workflows/graalwasm-spring-boot-photon.yml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/graalpy-micronaut-guide.yml b/.github/workflows/graalpy-micronaut-guide.yml index 36af5dd..f4706bf 100644 --- a/.github/workflows/graalpy-micronaut-guide.yml +++ b/.github/workflows/graalpy-micronaut-guide.yml @@ -34,7 +34,7 @@ jobs: ./mvnw --no-transfer-progress mn:run & mnpid="$!" sleep 30 - curl -s -D - -o /dev/null http://localhost:8080/ + curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/ kill $mnpid - name: Build and run native 'graalpy-micronaut-guide' using Maven run: | @@ -43,5 +43,5 @@ jobs: ./target/graalpy-micronaut & mnpid="$!" sleep 20 - curl -s -D - -o /dev/null http://localhost:8080/ + curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/ kill $mnpid diff --git a/.github/workflows/graalpy-micronaut-pygal-charts.yml b/.github/workflows/graalpy-micronaut-pygal-charts.yml index e337436..8f6cee2 100644 --- a/.github/workflows/graalpy-micronaut-pygal-charts.yml +++ b/.github/workflows/graalpy-micronaut-pygal-charts.yml @@ -34,7 +34,7 @@ jobs: ./mvnw --no-transfer-progress mn:run & mnpid="$!" sleep 30 - curl --fail-with-body -s -D - -o /dev/null http://localhost:8080/java + curl --fail-with-body --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/java kill $mnpid - name: Build and run native 'graalpy-micronaut-pygal-charts' using Maven run: | @@ -43,5 +43,5 @@ jobs: ./target/demo & mnpid="$!" sleep 20 - curl --fail-with-body -s -D - -o /dev/null http://localhost:8080/python + curl --fail-with-body --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/python kill $mnpid diff --git a/.github/workflows/graalpy-spring-boot-guide.yml b/.github/workflows/graalpy-spring-boot-guide.yml index 08006c2..439643d 100644 --- a/.github/workflows/graalpy-spring-boot-guide.yml +++ b/.github/workflows/graalpy-spring-boot-guide.yml @@ -34,7 +34,7 @@ jobs: ./mvnw --no-transfer-progress spring-boot:run & sbpid="$!" sleep 30 - curl -s -D - -o /dev/null http://localhost:8080/ + curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/ kill $sbpid - name: Build and run native 'graalpy-spring-boot-guide' using Maven run: | @@ -43,5 +43,5 @@ jobs: ./target/graalpy-springboot & sbpid="$!" sleep 20 - curl -s -D - -o /dev/null http://localhost:8080/ + curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/ kill $sbpid diff --git a/.github/workflows/graalwasm-micronaut-photon.yml b/.github/workflows/graalwasm-micronaut-photon.yml index f03ac25..36f6b4a 100644 --- a/.github/workflows/graalwasm-micronaut-photon.yml +++ b/.github/workflows/graalwasm-micronaut-photon.yml @@ -35,4 +35,4 @@ jobs: ./mvnw --no-transfer-progress clean package -Dpackaging=native-image ./target/demo & sleep 10 - curl -s -D - -o /dev/null http://localhost:8080/photo/flipv + curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/photo/flipv diff --git a/.github/workflows/graalwasm-spring-boot-photon.yml b/.github/workflows/graalwasm-spring-boot-photon.yml index 617fe1d..0299405 100644 --- a/.github/workflows/graalwasm-spring-boot-photon.yml +++ b/.github/workflows/graalwasm-spring-boot-photon.yml @@ -35,4 +35,4 @@ jobs: ./mvnw --no-transfer-progress clean -Pnative native:compile ./target/demo & sleep 10 - curl -s -D - -o /dev/null http://localhost:8080/photo/flipv + curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/photo/flipv