forked from rashtao/arango-micronaut-native-example
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.11 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Native CI
on: push
jobs:
verify:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shaded:
- 'true'
- 'false'
steps:
- uses: actions/checkout@v2
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21.0.2'
distribution: 'graalvm-community'
cache: 'maven'
native-image-job-reports: 'true'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Info
run: mvn -version
- name: Deps tree
run: mvn dependency:tree -Dshaded=${{matrix.shaded}}
- name: Start Database
run: ./docker/start_db.sh
env:
SSL: true
- name: test
run: mvn test
- name: package-native
run: mvn -Dpackaging=native-image -Dshaded=${{matrix.shaded}} package
- name: start-native
run: ./target/demo &
- name: wait
run: sleep 1
- name: test-version
run: curl -v --fail http://localhost:8080/version
- name: test-serde
run: curl -v --fail http://localhost:8080/order