File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
native-image/microservices/micronaut-hello-rest-maven-layered Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments