forked from plume-lib/plume-util
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 897 Bytes
/
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
name: Java CI with Gradle
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17', '21' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
show-progress: false
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: java -version
run: java -version
- name: ./gradlew build javadoc
run: ./gradlew build javadoc
- name: Setup local CF
run: ./.setup-CF.sh
- name: ./gradlew -PcfLocal build
run: ./gradlew -PcfLocal build
- name: ./gradlew requireJavadoc
run: ./gradlew requireJavadoc
# TODO: This might be done by "./gradlew build"
- name: ./gradlew spotlessCheck
if: ${{ matrix.java != '8' }}
run: ./gradlew spotlessCheck