Skip to content

Build multiple JDKs and junit test reports #425

Build multiple JDKs and junit test reports

Build multiple JDKs and junit test reports #425

Workflow file for this run

name: Zerocode TDD CI Build In Action
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
version: [8, 11, 17, 21, 23]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setting up JDK ${{ matrix.version }}
uses: actions/setup-java@v4
with:
java-version: "${{ matrix.version }}"
distribution: 'temurin'
cache: 'maven'
- name: Running Kafka
run: docker compose -f docker/compose/kafka-schema-registry.yml up -d && sleep 10
- name: Running PostgreSQL (to test DB SQL Executor)
run: docker compose -f docker/compose/pg_compose.yml up -d
- name: Building and testing the changes
run: mvn clean test -ntp
- if: always()
name: Junit html report
uses: javiertuya/[email protected]
with:
surefire-files: "**/target/surefire-reports/TEST-*.xml"
report-dir: target/site/junit
- if: always()
name: Publish test report files
uses: actions/[email protected]
with:
name: "test-report-java${{ matrix.version }}"
path: |
target/site/junit