-
Notifications
You must be signed in to change notification settings - Fork 715
43 lines (39 loc) · 1.4 KB
/
build-fitnesse.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
name: Build FitNesse
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ '11', '17', '21' ]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Remove Java 21 incompatible tests
if: ${{ matrix.java-version == '21' }}
run: rm -rf FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/SystemExitIsPrevented
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
# Only write to the cache for builds on the 'master' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Build with Gradle
run: ./gradlew build slimJar sourcesJar javadocJar
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libs-java-${{ matrix.java-version }}
path: build/libs
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: build/test-results/test/*.xml