Skip to content

Commit

Permalink
Update workflows to test gradle examples for graalpy
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Nov 4, 2024
1 parent e15dcde commit d909fa2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/graalpy-freeze-dependencies-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ jobs:
shell: bash
run: |
cd graalpy/graalpy-freeze-dependencies-guide
git clean -fdx
./mvnw --no-transfer-progress compile
./mvnw --no-transfer-progress exec:java -Dexec.mainClass=org.example.App | tee /tmp/output
grep darent /tmp/output
grep darent /tmp/output
- name: Build, test, and run 'graalpy-freeze-dependencies-guide' using Gradle
shell: bash
run: |
cd graalpy/graalpy-freeze-dependencies-guide
git clean -fdx
./gradlew build
./gradlew run | tee /tmp/output
grep darent /tmp/output
22 changes: 22 additions & 0 deletions .github/workflows/graalpy-micronaut-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,40 @@ jobs:
- name: Build, test, and run 'graalpy-micronaut-guide' using Maven
run: |
cd graalpy/graalpy-micronaut-guide
git clean -fdx
./mvnw --no-transfer-progress clean test -Dmicronaut.http.client.read-timeout=1m
./mvnw --no-transfer-progress mn:run &
mnpid="$!"
sleep 30
curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
kill $mnpid
- name: Build, test, and run 'graalpy-micronaut-guide' using Gradle
run: |
cd graalpy/graalpy-micronaut-guide
git clean -fdx
./gradlew test -Dmicronaut.http.client.read-timeout=1m
./gradlew run &
mnpid="$!"
sleep 30
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: |
cd graalpy/graalpy-micronaut-guide
git clean -fdx
./mvnw --no-transfer-progress clean package -DskipTests -Dpackaging=native-image
./target/graalpy-micronaut &
mnpid="$!"
sleep 20
curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
kill $mnpid
- name: Build and run native 'graalpy-micronaut-guide' using Gradle
run: |
cd graalpy/graalpy-micronaut-guide
git clean -fdx
./gradlew nativeCompile
./build/native/nativeCompile/demo &
mnpid="$!"
sleep 20
curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
kill $mnpid
22 changes: 22 additions & 0 deletions .github/workflows/graalpy-spring-boot-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,40 @@ jobs:
- name: Build, test, and run 'graalpy-spring-boot-guide' using Maven
run: |
cd graalpy/graalpy-spring-boot-guide
git clean -fdx
./mvnw --no-transfer-progress clean test -Dspring.mvc.async.request-timeout=60000
./mvnw --no-transfer-progress spring-boot:run &
sbpid="$!"
sleep 30
curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
kill $sbpid
- name: Build, test, and run 'graalpy-spring-boot-guide' using Gradle
run: |
cd graalpy/graalpy-spring-boot-guide
git clean -fdx
./gradlew test -Dspring.mvc.async.request-timeout=60000
./gradlew bootRun &
sbpid="$!"
sleep 30
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: |
cd graalpy/graalpy-spring-boot-guide
git clean -fdx
./mvnw --no-transfer-progress clean -DskipTests -Pnative native:compile
./target/graalpy-springboot &
sbpid="$!"
sleep 20
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 Gradle
run: |
cd graalpy/graalpy-spring-boot-guide
git clean -fdx
./gradlew nativeCompile
./build/native/nativeCompile/demo &
sbpid="$!"
sleep 20
curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/
kill $sbpid
2 changes: 1 addition & 1 deletion graalpy/graalpy-spring-boot-guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ To run the application:
or

```bash
./gradlew run
./gradlew bootRun
```

This will start the application on port 8080.
Expand Down

0 comments on commit d909fa2

Please sign in to comment.