-
Notifications
You must be signed in to change notification settings - Fork 40
65 lines (59 loc) · 1.9 KB
/
hibernate-reactive-mutiny-oracle.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: hibernate-reactive-mutiny-oracle
on:
push:
paths:
- "hibernate-reactive-mutiny-oracle/**"
branches: [master]
pull_request:
paths:
- "hibernate-reactive-mutiny-oracle/**"
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
services:
# Oracle service (label used to access the service container)
oracle:
# Docker Hub image (feel free to change the tag "latest" to any other available one)
image: gvenzl/oracle-free:latest
# Provide passwords and other environment variables to container
env:
ORACLE_PASSWORD: sysPassword
ORACLE_DATABASE: blogdb
APP_USER: testUser
APP_USER_PASSWORD: testPassword
# Forward Oracle port
ports:
- 1521:1521
# Provide healthcheck script options for startup
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: "21"
distribution: "zulu"
cache: "maven"
# - name: Set up Oracle(via Docker Compose)
# run: |
# cd hibernate-reactive-mutiny-oracle
# docker-compose up -d
# sleep 10
# docker ps -a
# - uses: gvenzl/setup-oracle-free@v1
# with:
# oracle-database: blogdb
# app-user: testUser
# app-user-password: testPassword
- name: Build with Maven
run: |
mvn -B -q clean package --file hibernate-reactive-mutiny-oracle/pom.xml
mvn -B -q verify --file hibernate-reactive-mutiny-oracle/pom.xml -Pit