RIPE NCC has merged 526db5cfe #62
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: JUnit Tests | |
on: | |
pull_request: | |
push: | |
jobs: | |
build-test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_USER: certdb | |
POSTGRES_PASSWORD: certdb | |
POSTGRES_DB: certdb_test | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup java | |
uses: actions/setup-java@4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Run tests | |
run: ./gradlew test | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: JUnit Tests | |
path: 'build/test-results/test/TEST-*.xml' | |
reporter: java-junit |