From 8dafe69beb3491c9ecd41a2e136772f949e4ae4c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 21:14:22 +0000 Subject: [PATCH 1/3] Update gradle/gradle-build-action action to v3 --- .github/workflows/build.yml | 2 +- .github/workflows/codecov.yml | 2 +- .github/workflows/detekt.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/upgrade.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 019dafc8e..a4cd2ef41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: # store version in GitHub environment file echo "version=$VERSION" >> $GITHUB_ENV - name: Build ${{ env.version }} - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 with: arguments: :codyze-cli:build -x check --parallel -Pversion=${{ env.version }} - name: Push Release Docker Image diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d7c5b3b4f..ee9eb70af 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -20,7 +20,7 @@ jobs: distribution: "temurin" java-version: 17 - name: Generate coverage report - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 with: arguments: testCodeCoverageReport --continue - name: Archive test reports diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 54558c8c5..7f5482e6c 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -26,7 +26,7 @@ jobs: java-version: 17 - name: Run analysis - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 with: arguments: detektMain detektTest --continue diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 94d3b6136..37a56bd14 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,7 +23,7 @@ jobs: python -m pip install mkdocs-material python -m pip install -r ./docs/mkdocs-material-plugins.txt - name: 'Build API pages' - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 with: arguments: | dokkaHtmlMultiModule diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index 621d9efbe..dea6da3b1 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -26,7 +26,7 @@ jobs: distribution: "temurin" java-version: ${{ matrix.version }} - name: Build - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 # step-level 'continue-on-error' needed to mask a negative workflow result continue-on-error: true with: From 4394c3689ca1c74625856695b75e612f289b490f Mon Sep 17 00:00:00 2001 From: "Wendland, Florian" Date: Tue, 30 Jan 2024 13:13:50 +0100 Subject: [PATCH 2/3] Upgrade to superceded action and use recommended usage --- .github/workflows/build.yml | 6 +++--- .github/workflows/codecov.yml | 6 +++--- .github/workflows/detekt.yml | 6 +++--- .github/workflows/docs.yml | 6 +++--- .github/workflows/upgrade.yml | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4cd2ef41..63f38cc53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,10 +36,10 @@ jobs: fi # store version in GitHub environment file echo "version=$VERSION" >> $GITHUB_ENV + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build ${{ env.version }} - uses: gradle/gradle-build-action@v3 - with: - arguments: :codyze-cli:build -x check --parallel -Pversion=${{ env.version }} + run: ./gradlew :codyze-cli:build -x check --parallel -Pversion=${{ env.version }} - name: Push Release Docker Image if: startsWith(github.ref, 'refs/tags/v') run: | diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index ee9eb70af..5f3c6f481 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -19,10 +19,10 @@ jobs: with: distribution: "temurin" java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Generate coverage report - uses: gradle/gradle-build-action@v3 - with: - arguments: testCodeCoverageReport --continue + run: ./gradlew testCodeCoverageReport --continue - name: Archive test reports uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index 7f5482e6c..c574ccedd 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -25,10 +25,10 @@ jobs: distribution: "temurin" java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Run analysis - uses: gradle/gradle-build-action@v3 - with: - arguments: detektMain detektTest --continue + run: ./gradlew detektMain detektTest --continue # Make sure we always run this upload task, # because the previous step may fail if there are findings. diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 37a56bd14..25b112380 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,10 +22,10 @@ jobs: run: | python -m pip install mkdocs-material python -m pip install -r ./docs/mkdocs-material-plugins.txt + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: 'Build API pages' - uses: gradle/gradle-build-action@v3 - with: - arguments: | + run: | dokkaHtmlMultiModule -Dorg.gradle.internal.repository.max.tentatives=5 -Dorg.gradle.internal.repository.initial.backoff=10000 diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index dea6da3b1..9ca8ba62e 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -25,9 +25,9 @@ jobs: with: distribution: "temurin" java-version: ${{ matrix.version }} + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build - uses: gradle/gradle-build-action@v3 + run: ./gradlew :codyze-cli:build -x check --parallel -Pversion=0.0.0 # step-level 'continue-on-error' needed to mask a negative workflow result continue-on-error: true - with: - arguments: :codyze-cli:build -x check --parallel -Pversion=0.0.0 \ No newline at end of file From d7a0bc7e5b0bd35e2a4f3ff6633ddb2598149ff5 Mon Sep 17 00:00:00 2001 From: "Wendland, Florian" Date: Thu, 1 Feb 2024 09:52:36 +0100 Subject: [PATCH 3/3] Add missing call to Gradle wrapper --- .github/workflows/docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 25b112380..21e2016bd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,6 +26,7 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: 'Build API pages' run: | + ./gradlew dokkaHtmlMultiModule -Dorg.gradle.internal.repository.max.tentatives=5 -Dorg.gradle.internal.repository.initial.backoff=10000