Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed Feb 20, 2024
1 parent 4a4da5e commit 1f875f0
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,21 @@ on:
pull_request:
branches: [ master ]

env:
GRADLE_CACHE_KEY: ${{ github.run_id }}-gradle-${{ github.run_number }}-${{ github.run_number }}-${{ github.sha }}

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java: [ '11', '21' ]
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/cache@v1
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
path: ~/.gradle/caches
key: ${{ env.GRADLE_CACHE_KEY }}
restore-keys: ${{ env.GRADLE_CACHE_KEY }}
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Run tests
run: chmod +x gradlew && ./gradlew test

uses: gradle/actions/setup-gradle@v3
with:
arguments: test

0 comments on commit 1f875f0

Please sign in to comment.