Skip to content

Commit a8d909c

Browse files
cstancufniephaus
authored andcommitted
Add workflow and run script.
1 parent 08f94df commit a8d909c

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: microservices/micronaut-hello-rest-maven-layered
2+
on:
3+
push:
4+
paths:
5+
- 'native-image/microservices/micronaut-hello-rest-maven-layered/**'
6+
- '.github/workflows/microservices-micronaut-hello-rest-maven-layered.yml'
7+
schedule:
8+
- cron: "0 0 1 * *" # run every month
9+
workflow_dispatch:
10+
permissions:
11+
contents: read
12+
jobs:
13+
run:
14+
name: Run 'microservices/micronaut-hello-rest-maven-layered'
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 15
17+
strategy:
18+
matrix:
19+
java-version: ['25']
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: graalvm/setup-graalvm@v1
23+
with:
24+
java-version: ${{ matrix.java-version }}
25+
distribution: 'graalvm'
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
cache: 'maven'
28+
native-image-job-reports: 'true'
29+
- name: Run 'microservices/micronaut-hello-rest-maven-layered'
30+
run: |
31+
cd native-image/microservices/micronaut-hello-rest-maven-layered
32+
./run.sh
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
./mvnw --no-transfer-progress clean install -Dpackaging=native-image -Pbase-layer
5+
./mvnw --no-transfer-progress clean package -Dpackaging=native-image -Papp-layer
6+
./app-layer-target/layered-app &
7+
sleep 5
8+
curl "http://localhost:8080/hello"

0 commit comments

Comments
 (0)