|
10 | 10 | - master |
11 | 11 | jobs: |
12 | 12 | build: |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + version: [8, 11, 17, 21, 23] |
| 16 | + fail-fast: false |
13 | 17 | runs-on: ubuntu-latest |
14 | 18 | steps: |
15 | | - - uses: actions/checkout@v3 |
| 19 | + - uses: actions/checkout@v4 |
16 | 20 |
|
17 | | - - name: Setting up JDK8 |
18 | | - uses: actions/setup-java@v3 |
| 21 | + - name: Setting up JDK ${{ matrix.version }} |
| 22 | + uses: actions/setup-java@v4 |
19 | 23 | with: |
20 | | - java-version: '8' |
21 | | - distribution: 'adopt' |
22 | | - |
23 | | - - name: Install Docker Compose |
24 | | - run: | |
25 | | - sudo apt-get update |
26 | | - sudo apt-get install -y docker-compose |
27 | | - |
| 24 | + java-version: "${{ matrix.version }}" |
| 25 | + distribution: 'temurin' |
| 26 | + cache: 'maven' |
| 27 | + |
28 | 28 | - name: Running Kafka |
29 | | - run: docker-compose -f docker/compose/kafka-schema-registry.yml up -d && sleep 10 |
| 29 | + run: docker compose -f docker/compose/kafka-schema-registry.yml up -d && sleep 10 |
30 | 30 |
|
31 | 31 | - name: Running PostgreSQL (to test DB SQL Executor) |
32 | | - run: docker-compose -f docker/compose/pg_compose.yml up -d |
| 32 | + run: docker compose -f docker/compose/pg_compose.yml up -d |
33 | 33 |
|
34 | 34 | - name: Building and testing the changes |
35 | | - run: mvn clean test |
| 35 | + run: mvn clean test -ntp |
| 36 | + |
| 37 | + - if: always() |
| 38 | + name: Junit html report |
| 39 | + uses: javiertuya/junit-report-action@v1.3.0 |
| 40 | + with: |
| 41 | + surefire-files: "**/target/surefire-reports/TEST-*.xml" |
| 42 | + report-dir: target/reports |
| 43 | + |
| 44 | + - if: always() |
| 45 | + name: Interactive and granular reports |
| 46 | + run: cp core/target/*.html target/reports/ && cp core/target/*.csv target/reports/ |
| 47 | + |
| 48 | + - if: always() |
| 49 | + name: Publish test report files |
| 50 | + uses: actions/upload-artifact@v4.6.2 |
| 51 | + with: |
| 52 | + name: "test-report-java${{ matrix.version }}" |
| 53 | + path: | |
| 54 | + target/reports |
| 55 | + !target/reports/someFileName.html |
0 commit comments