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

chore: Update gradle/actions action to v4 #216

Merged
merged 2 commits into from
Aug 12, 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
42 changes: 22 additions & 20 deletions .github/workflows/build-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
check jacocoTestReport -x :artifact-tests:test
run: >
./gradlew
--stacktrace
check jacocoTestReport -x :artifact-tests:test
- name: Test publishing
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
publishToMavenLocal
run: >
./gradlew
--stacktrace
publishToMavenLocal
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
Expand All @@ -56,12 +56,13 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run artifact tests
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
:artifact-tests:check
run: >
./gradlew
--stacktrace
:artifact-tests:check
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
Expand All @@ -86,12 +87,13 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish plugin
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
-Pversion=SNAPSHOT-${{ github.sha }}
assemble publishAllPublicationsToSnapshotRepository
run: >
./gradlew
-Pversion=SNAPSHOT-${{ github.sha }}
assemble publishAllPublicationsToSnapshotRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Snapshot coordinates comment
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/build-on-push-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
check jacocoTestReport -x :artifact-tests:test
run: >
./gradlew
--stacktrace
check jacocoTestReport -x :artifact-tests:test
- name: Test publishing
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
publishToMavenLocal
run: >
./gradlew
--stacktrace
publishToMavenLocal
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
Expand All @@ -56,12 +56,13 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run artifact tests
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
:artifact-tests:check
run: >
./gradlew
--stacktrace
:artifact-tests:check
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
Expand Down
41 changes: 22 additions & 19 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish plugin on release

on:
release:
types: [published]
types: [ published ]

jobs:
build:
Expand All @@ -16,12 +16,13 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
check -x :artifact-tests:test
run: >
./gradlew
--stacktrace
check -x :artifact-tests:test
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
Expand All @@ -42,12 +43,13 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run artifact tests
uses: gradle/actions/setup-gradle@v3
with:
arguments: |
--stacktrace
:artifact-tests:check
run: >
./gradlew
--stacktrace
:artifact-tests:check
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
Expand All @@ -70,22 +72,23 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish plugin
uses: gradle/actions/setup-gradle@v3
env:
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.OSSRH_GPG_SECRET_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_withSigning: true
with:
arguments: |
-Pversion=${{ github.event.release.tag_name }}
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
--stacktrace
assemble publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins
run: >
./gradlew
-Pversion=${{ github.event.release.tag_name }}
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
--stacktrace
assemble publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins
- name: Attach artifacts to the release
uses: svenstaro/upload-release-action@v2
with:
Expand Down
Loading