Bump jvm from 1.8.0 to 1.9.20 #652
Workflow file for this run
This file contains 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: Gradle Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
gradle: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
java: ['8', '11', '17'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'gradle' | |
- name: Build Library | |
uses: nick-invision/retry@v2 | |
with: | |
timeout_minutes: 10 | |
max_attempts: 5 | |
command: | | |
./gradlew build | |
- name: Publish to Maven Local | |
run: ./gradlew publishToMavenLocal | |
- name: Build Examples | |
if: matrix.java == '17' | |
run: ./gradlew build | |
working-directory: ./examples | |
- id: test-data | |
name: Run HelloWorld | |
if: matrix.java == '17' | |
working-directory: ./examples | |
run: |- | |
./gradlew :server:HelloWorldServer & | |
sleep 30 | |
OUTPUT=$(./gradlew :client:HelloWorldClient) | |
echo "stdout=${OUTPUT//$'\n'/'%0A'}" >> $GITHUB_OUTPUT | |
- name: Test HelloWorld | |
if: matrix.java == '17' | |
uses: nick-invision/assert-action@v1 | |
with: | |
expected: "Received: Hello world" | |
actual: ${{ steps.test-data.outputs.stdout }} | |
comparison: contains |