Skip to content

Commit

Permalink
Merge pull request #24 from woltapp/update-github-actions
Browse files Browse the repository at this point in the history
update gradle actions
  • Loading branch information
nkly-wolt authored Aug 26, 2024
2 parents 03a4d49 + 2e48a44 commit d042034
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 33 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/gradle-wrapper-validation.yml

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
uses: gradle/gradle-build-action@v2
with:
arguments: test
run: ./gradlew test
publish:
name: Check that the publish plugin works
runs-on: ubuntu-latest
needs: [tests, lint]
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Check that the publish plugin works
uses: gradle/gradle-build-action@v2
with:
arguments: publishToMavenLocal
run: ./gradlew publishToMavenLocal
lint:
name: Check that the code is formatted
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Check that the code is formatted
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessCheck
run: ./gradlew spotlessCheck
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JVM
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-package: jdk
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish to repository
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
Expand Down

0 comments on commit d042034

Please sign in to comment.