update to gradle action v4 #969
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: Check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
gradle-properties-version: [ 242, 243-SNAPSHOT ] | |
runs-on: ubuntu-latest | |
env: | |
ORG_GRADLE_PROJECT_shortPlatformVersion: ${{ matrix.gradle-properties-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: 21 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
# with `true`, caches will only be created in `master` branch, and PRs will run read-only | |
cache-read-only: false | |
- name: Build | |
run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false | |
- name: Tests | |
run: ./gradlew test --stacktrace -Pkotlin.incremental=false | |
- name: Verify plugin.xml | |
run: ./gradlew verifyPluginConfiguration | |
- name: Verify plugin | |
run: ./gradlew verifyPlugin |