-
Notifications
You must be signed in to change notification settings - Fork 2
167 lines (144 loc) · 4.09 KB
/
bld.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
name: bld-ci
on: [push, pull_request, workflow_dispatch]
jobs:
build-linux:
runs-on: ubuntu-latest
services:
oracle:
image: gvenzl/oracle-xe:18-slim
env:
ORACLE_RANDOM_PASSWORD: true
APP_USER: unittests
APP_USER_PASSWORD: password
ports:
- 1521:1521
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
oracle-free:
image: gvenzl/oracle-free:latest
env:
ORACLE_RANDOM_PASSWORD: true
APP_USER: unittests
APP_USER_PASSWORD: password
ports:
- 1522:1521
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
mysql:
image: mysql:8
env:
MYSQL_DATABASE: unittests
MYSQL_USER: unittests
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
mariadb:
image: mariadb:10.9
env:
MARIADB_DATABASE: unittests
MARIADB_USER: unittests
MARIADB_PASSWORD: password
MARIADB_ROOT_PASSWORD: root
ports:
- 3307:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
postgres:
image: postgres:15
env:
POSTGRES_DB: unittests
POSTGRES_PASSWORD: password
POSTGRES_PORT: 5432
POSTGRES_USER: unittests
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
MYSQL_DATABASE: unittests
MYSQL_USER: root
MYSQL_PASSWORD: root
strategy:
matrix:
java-version: [ 17, 20, 21, 22 ]
steps:
- name: Checkout source repository
uses: actions/checkout@v4
with:
clean: true
submodules: 'true'
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
check-latest: true
- name: Run tests
run: >-
./bld clean download compile test
-Dtest.postgres=true -Dtest.mysql=true -Dtest.mariadb=true -Dtest.oracle=true -Dtest.oracle-free=true
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-core
-DtestsBadgeApiKey=${{ secrets.TESTS_BADGE_API_KEY }}
build-macos:
runs-on: macos-latest
strategy:
matrix:
java-version: [ 17, 20, 21, 22 ]
steps:
- name: Checkout source repository
uses: actions/checkout@v4
with:
clean: true
submodules: 'true'
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
check-latest: true
- name: Run tests
run: >-
./bld clean download compile test
build-windows:
runs-on: windows-latest
strategy:
matrix:
java-version: [ 17, 20, 21, 22 ]
steps:
- name: Configure git line endings
run: git config --global core.autocrlf input
- name: Checkout source repository
uses: actions/checkout@v4
with:
clean: true
submodules: 'true'
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
check-latest: true
- name: Run tests
run: >-
.\bld.bat clean download compile test