Skip to content

Commit

Permalink
Use --fail-with-body to fail the job if curl fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Oct 7, 2024
1 parent b7989c9 commit 311ec28
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/graalpy-micronaut-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/graalpy-micronaut-pygal-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/graalpy-spring-boot-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/graalwasm-micronaut-photon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/graalwasm-spring-boot-photon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 311ec28

Please sign in to comment.