-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 921 Bytes
/
test.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
name: test
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- '**.md'
jobs:
test:
name: Test ${{ matrix.os }} JDK${{ matrix.java }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
java: [ 17 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
java-package: jdk
cache: 'gradle'
- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Upload Unit Test Reports
if: always()
uses: actions/upload-artifact@v3
with:
name: test-reports-${{ matrix.os }}-JDK${{ matrix.java }}
path: '**/build/reports/tests/'