From 88883e612d30af02b864a74ff3bea59ce0682c0a Mon Sep 17 00:00:00 2001 From: Sergii Gnatiuk Date: Wed, 17 Apr 2024 00:36:01 +0300 Subject: [PATCH] enable gradle cache in CI --- .github/workflows/base-ci.yml | 9 ++++++--- .github/workflows/pull-request.yml | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/base-ci.yml b/.github/workflows/base-ci.yml index 2ece9be..601cd16 100644 --- a/.github/workflows/base-ci.yml +++ b/.github/workflows/base-ci.yml @@ -9,15 +9,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 1.8 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -33,7 +36,7 @@ jobs: build/test-results - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: build/reports/jacoco/test/jacocoTestReport.xml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 80eb7c6..2b121ff 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,10 +25,13 @@ jobs: fetch-depth: 0 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 1.8 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Pull tests artifacts uses: actions/download-artifact@master with: