-
Notifications
You must be signed in to change notification settings - Fork 92
45 lines (45 loc) · 1.2 KB
/
build.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
39
40
41
42
43
44
45
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [17, 21]
runs-on: ubuntu-22.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build --stacktrace
- name: Archive test results
if: "${{ always() }}"
uses: actions/upload-artifact@v3
with:
name: "test-results-java${{ matrix.java }}"
path: |
build/reports/
plugins/*/build/reports/
build/test-results/**/*.xml
publish-test-results:
runs-on: ubuntu-22.04
needs: [build]
permissions:
issues: write
pull-requests: write
checks: write
if: success() || failure()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: Test Results
files: artifacts/*/build/test-results/**/*.xml