Skip to content

Updates

Updates #16

Workflow file for this run

name: Java CI
on: [push]
jobs:
# Label of the runner job
runner-job:
# You must use a Linux environment when using service containers or container jobs
runs-on: ubuntu-latest
# Service containers to run with `runner-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:16.4
# Provide the password for postgres
env:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: testdb
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5433:5432
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
distribution: corretto
- name: Build with Maven
run: ./mvnw -B compile --file pom.xml -Dspring.profiles.active=ghci
- name: Test with Maven
run: ./mvnw -B test --file pom.xml -Dspring.profiles.active=ghci