Bump gradle/wrapper-validation-action from 2 to 3 #189
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
# Build workflow | |
name: CI | |
on: | |
push: | |
branches: [ master, 1-stable ] | |
pull_request: | |
branches: [ master, 1-stable ] | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
# Validate wrapper to prevent potential supply chain attack | |
gradle-wrapper-validation: | |
runs-on: ubuntu-latest | |
name: Validate Gradle wrapper | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v3 | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '11', '17' ] | |
name: Java ${{ matrix.Java }} build | |
steps: | |
# Checks-out the repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v4 | |
# Set JDK | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
# Build | |
- name: Build with Gradle | |
run: ./gradlew build | |
testOn8: | |
runs-on: ubuntu-latest | |
name: Test on Java 8 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
# Run tests with Java 8 | |
- name: Test with Java 8 | |
run: ./gradlew testOn8 |