-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (37 loc) · 1.14 KB
/
gradle.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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v4
# Java 11 is always needed to run the tests because they use MPS 2021.x
- name: Set up Java 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew build
- name: Upload JUnit XMLs
uses: actions/upload-artifact@v3
if: failure()
with:
name: junit-xmls
path: '**/build/test-results/**/TEST-*.xml'
retention-days: 7
- uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
require_tests: true