Skip to content

Commit

Permalink
👷 Use java set up step to define gradle cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysoun committed Mar 19, 2024
1 parent 1022451 commit 67f3f21
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Define Gradle cache
uses: actions/cache@v2
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Build
run: ./gradlew build --build-cache --console plain

- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: tests-results # Name artifact for storage in cache
name: backend-tests-results # Name artifact for storage in cache
path: |
modules/**/build/test-results/**/*.xml
Expand Down

0 comments on commit 67f3f21

Please sign in to comment.