Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle/gradle-build-action action to v3 #814

Merged
merged 5 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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