diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 019dafc8e..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@v2 - 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 fecb22bd6..2bea31a01 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@v2 - 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 54558c8c5..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@v2 - 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 94d3b6136..21e2016bd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,10 +22,11 @@ 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@v2 - with: - arguments: | + run: | + ./gradlew 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 621d9efbe..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@v2 + 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