Skip to content

Update gradle ci version and use config-cache #251

Update gradle ci version and use config-cache

Update gradle ci version and use config-cache #251

Workflow file for this run

name: All Platforms Tests
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-number:
uses: ./.github/workflows/build-number.yml
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: Setup gradle
uses: gradle/setup-gradle-action@v3
with:
gradle-home-cache-cleanup: true
cache-write-only: ${{ github.ref == "refs/heads/main" }}

Check failure on line 32 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / All Platforms Tests

Invalid workflow file

The workflow is not valid. .github/workflows/check.yml (Line: 32, Col: 29): Unexpected symbol: '"refs/heads/main"'. Located at position 15 within expression: github.ref == "refs/heads/main"
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build with Gradle
run: ./gradlew spotlessCheck