fix workflows

This commit is contained in:
connorhartley 2024-01-07 15:10:25 +13:00
parent ec138cc92b
commit 85d0cc7a12
2 changed files with 4 additions and 16 deletions

View file

@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
env: env:
RUNTIME_VERSION: 17 RUNTIME_VERSION: 11
jobs: jobs:
build: build:
@ -23,14 +23,14 @@ jobs:
runs-on: "${{ matrix.os }}" runs-on: "${{ matrix.os }}"
steps: steps:
- name: "checkout repository" - name: "checkout repository"
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: "setup jdk ${{ env.RUNTIME_VERSION }}" - name: "setup jdk ${{ env.RUNTIME_VERSION }}"
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: "temurin" distribution: "temurin"
java-version: "${{ env.RUNTIME_VERSION }}" java-version: "${{ env.RUNTIME_VERSION }}"
- name: "run gradle build" - name: "run gradle build"
uses: "gradle/gradle-build-action@v2" uses: "gradle/gradle-build-action@v2"
with: with:
cache-read-only: "${{ github.ref != 'refs/heads/main' || github.event_name == 'pull_request' }}" cache-read-only: "${{ !startsWith(github.ref, 'refs/heads/main/') || github.event_name == 'pull_request' }}"
arguments: "build" arguments: "build"

View file

@ -1,12 +0,0 @@
name: "validate gradle wrapper"
on: ["pull_request", "push"]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: "checkout repository"
uses: actions/checkout@v3
- name: "validate gradle wrapper"
uses: "gradle/wrapper-validation-action@v1"