-
Notifications
You must be signed in to change notification settings - Fork 11
64 lines (59 loc) · 1.87 KB
/
postgresql.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
name: Java Continuous Integration (PostgreSQL)
on:
push:
branches:
- master
# Ignore changes in documentation and reports
paths-ignore:
- 'showcase-quarkus-eventsourcing/native-image-agent-results/**'
- '**/*.md'
- '**/*.txt'
- '.gitignore'
- '.gitattributes'
- 'renovate.json'
- 'changelogTemplate.mustache'
pull_request:
branches:
- master
# Ignore changes in documentation and reports
paths-ignore:
- 'showcase-quarkus-eventsourcing/native-image-agent-results/**'
- '**/*.md'
- '**/*.txt'
- '.gitignore'
- '.gitattributes'
- 'renovate.json'
- 'changelogTemplate.mustache'
jobs:
# Label of the container job
postgresql-build:
# Containers must run in Linux based operating systems
runs-on: ubuntu-22.04
# Docker Hub image that `postgresql-build` executes in
container: maven:3.8.7-openjdk-18
# Service containers to run with `postgresql-build`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build with Maven, Test with PostgreSql
working-directory: showcase-quarkus-eventsourcing
run: mvn verify -Dquarkus.profile=postgres --file pom.xml --batch-mode
env:
# The hostname used to communicate with the PostgreSQL service container
POSTGRES_HOST: postgres
# The default PostgreSQL port
POSTGRES_PORT: 5432