Skip to content

Merge pull request #65 from appiepollo14/renovate/io.rest-assured-res… #158

Merge pull request #65 from appiepollo14/renovate/io.rest-assured-res…

Merge pull request #65 from appiepollo14/renovate/io.rest-assured-res… #158

Workflow file for this run

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