-
Notifications
You must be signed in to change notification settings - Fork 76
38 lines (35 loc) · 1.21 KB
/
jberet-2.x.yml
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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: JBeret
on:
pull_request:
branches:
- main
- 2.*
types: [ opened, synchronize, reopened, ready_for_review ]
jobs:
build-test-matrix:
name: ${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
jdk-distribution: [ temurin ]
jdk-version: [ 11 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk-distribution }} ${{ matrix.jdk-version }}
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.jdk-distribution }}
java-version: ${{ matrix.jdk-version }}
cache: 'maven'
- name: Run Tests
run: mvn -ntp -U -B -fae clean verify
- uses: actions/upload-artifact@v3
if: failure()
with:
name: surefire-${{ matrix.jdk-distribution }}-${{ matrix.jdk-version }}-${{ matrix.os }}
path: '**/surefire-reports/*.txt'