-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 967 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
name: "Test"
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [17, 21]
runs-on: ubuntu-22.04
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Set up Java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ matrix.java }}
- name: "Set up Gradle"
uses: gradle/actions/setup-gradle@v3
- name: "Gradle Build and Test"
run: ./gradlew build check --stacktrace --parallel
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: Artifacts_j${{ matrix.java }}
path: ./build/libs/
- name: "Upload test reports"
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test_reports_j${{ matrix.java }}
retention-days: 2
path: ./build/reports/tests/