Merge pull request #63 from appiepollo14/renovate/org.junit.jupiter-j… #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
jobs: | |
container-job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn clean verify --file pom.xml | |
postman-integration-tests: | |
services: | |
postgres: | |
image: postgres:16.3-alpine | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_PASSWORD: S3cret | |
POSTGRES_USER: postgres_user | |
POSTGRES_DB: postgres_db | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build runnable jar with Maven | |
run: mvn package liberty:create liberty:install-feature liberty:deploy liberty:package -Dinclude=minify,runnable -DskipTests | |
- name: Run integration tests | |
run: | | |
nohup java -jar target/realworld-liberty.jar & sleep 20s | |
./utility/run-api-tests.sh | |
shell: bash |