-
Notifications
You must be signed in to change notification settings - Fork 109
50 lines (47 loc) · 1.52 KB
/
it.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
name: Integration Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: maven:3.8-eclipse-temurin-21
services:
postgres:
image: postgres:16
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v2
- name: Initialize database
env:
PGHOST: postgres
PGUSER: postgres
PGPASSWORD: postgres
run: |
apt-get update
apt-get install --yes --no-install-recommends postgresql-client
createuser -d -S -R maxcom
createuser -D -S -R linuxweb
createuser -D -S -R jamwiki
psql -c "ALTER USER maxcom WITH PASSWORD 'maxcom'" -U postgres template1
psql -c "ALTER USER linuxweb WITH PASSWORD 'linuxweb'" -U postgres template1
PGPASSWORD=maxcom createdb -U maxcom lor
psql -c 'create extension hstore;' -U postgres lor
psql -c 'create extension fuzzystrmatch;' -U postgres lor
PGPASSWORD=maxcom psql -f sql/demo.db -U maxcom lor
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
cache: maven
- name: Build
run: mvn --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true package
- name: Test
run: mvn --batch-mode -P CI verify