update workflows to use 21 and update toolchain plugin #194
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Build | |
# For pull requests: builds and test | |
on: | |
push: | |
branches: | |
- '!master' | |
pull_request: | |
branches: | |
- master | |
- reactive-streams-branch | |
- '**' | |
jobs: | |
buildAndTest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/actions/wrapper-validation@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'corretto' | |
check-latest: true | |
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies. | |
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: build and test | |
run: ./gradlew assemble && ./gradlew check --info --stacktrace | |
env: | |
CI: true |