Updating SDK to 2.1.0 #117
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: Java SDK Validation | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [8, 11, 16, 17] | |
steps: | |
- id: checkout | |
name: Checkout repo | |
uses: actions/checkout@v3 | |
- id: setup-jdk | |
name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'adopt' | |
- id: cache-gradle | |
name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- id: validate-wrapper | |
name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- id: executable-wrapper | |
name: Gradle Wrapper is made executable | |
run: | | |
chmod +x ./gradlew | |
- id: gradle-build | |
name: Build with Gradle | |
env: | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | |
GPG_KEY: ${{ secrets.GPG_KEY }} | |
run: | | |
./gradlew build | |
- id: gradle-test | |
name: Test with Gradle | |
run: | | |
./gradlew test |