File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Gradle
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+ name : Preview-JDKs
5+
6+ on :
7+ push :
8+ branches : [ '4.x' ]
9+ pull_request :
10+ branches : [ '4.x' ]
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ build :
17+ strategy :
18+ fail-fast : false # important: don't cancel other matrix jobs on failure
19+ matrix :
20+ java-version :
21+ - 27-ea # experimental/upcoming - allowed to fail
22+ include :
23+ - java-version : 27-ea
24+ experimental : true
25+
26+ runs-on : ubuntu-latest
27+ steps :
28+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+ - name : Set up JDK ${{ matrix.java-version }}
30+ uses : actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
31+ with :
32+ distribution : ' zulu'
33+ java-version : ${{ matrix.java-version }}
34+
35+ - name : Cache Gradle packages
36+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
37+ with :
38+ path : ~/.gradle/caches
39+ key : ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/*.gradle') }}
40+ restore-keys : ${{ runner.os }}-gradle-${{ secrets.CACHE_VERSION }}
41+ - name : Grant execute permission for gradlew
42+ run : chmod +x gradlew
43+
44+ - name : Run Validity Tests Upfront
45+ run : ./gradlew test --tests "io.reactivex.rxjava4.validators.*" --stacktrace --no-daemon
46+ - name : Build RxJava
47+ run : ./gradlew build --stacktrace
48+ - name : Generate Javadoc
49+ run : ./gradlew javadoc --stacktrace
50+
51+ continue-on-error : ${{ matrix.experimental || false }}
You can’t perform that action at this time.
0 commit comments