diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml deleted file mode 100644 index 7f60e1e..0000000 --- a/.github/workflows/gradle-wrapper-validation.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Validate Gradle Wrapper -on: - push: - branches: - - main - pull_request: - branches: - - '*' - -jobs: - validation: - name: Validation - runs-on: ubuntu-latest - steps: - - name: Checkout latest code - uses: actions/checkout@v2 - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v1 diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml index 5892231..4268b04 100644 --- a/.github/workflows/pre-merge.yml +++ b/.github/workflows/pre-merge.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5cbe5c1..a5da42a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/wrapper-validation-action@v1.0.4 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Publish to repository env: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}