Skip to content

cache master only

cache master only #973

Workflow file for this run

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
gradle-home-cache-includes: |
build/zip/*.zip
- 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