-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 848 Bytes
/
Copy pathtest.yml
File metadata and controls
32 lines (30 loc) · 848 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
name: Test
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ['21']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Run tests with deterministic seed
run: mvn -B clean test -Dseed=12345 -Duser.seed=12345 --file pom.xml
- name: Generate test report
if: always()
uses: dorny/test-reporter@v1
with:
name: Maven Test Results
path: '**/target/surefire-reports/TEST-*.xml'
reporter: java-junit
fail-on-error: true