forked from ebics-java/ebics-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1011 Bytes
/
test.yml
File metadata and controls
44 lines (37 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test:
name: Test on JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '21', '25' ]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Run tests with Maven
run: ./mvnw clean test --batch-mode --no-transfer-progress
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-jdk-${{ matrix.java }}
path: target/surefire-reports/
- name: Publish test report
if: always()
uses: dorny/test-reporter@v2
with:
name: Test Results (JDK ${{ matrix.java }})
path: 'target/surefire-reports/TEST-*.xml'
reporter: java-junit