-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.17 KB
/
build-test.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
47
48
49
50
51
#You can run this locally like followings
#act -W .github/workflows/build-test.yml
name: build and test
on: [pull_request]
jobs:
# nektos/act does not support Reusable workflow and does not use Reusable workflow for development productivity
jvm-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-package: 'jdk'
cache: maven
- name: Test with Maven on JVM
run: bash bin/test.sh
native-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '11'
components: 'native-image'
- name: Test to create native image
run: |
bash bin/native-image-test.sh
./artifact-test/target/artifact-test
env:
POSTGRES_HOST: localhost
POSTGRES_PASSWORD: postgres