diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml deleted file mode 100644 index bca8462..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@v4 - - name: Validate Gradle Wrapper - uses: gradle/wrapper-validation-action@v2 diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml index 9c76b9c..763aa93 100644 --- a/.github/workflows/pre-merge.yml +++ b/.github/workflows/pre-merge.yml @@ -16,6 +16,8 @@ jobs: uses: actions/checkout@v4 - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 + with: + validate-wrappers: true - name: Run tests run: ./gradlew build publish: @@ -24,9 +26,11 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Check that the publish plugin works + - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - - name: Build + with: + validate-wrappers: true + - name: Check that the publish plugin works run: ./gradlew publishToMavenLocal compile-test-snippets: name: Compile test snippets @@ -34,7 +38,9 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - - name: Compile the snippets in the tests + - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - - name: Build + with: + validate-wrappers: true + - name: Compile the snippets in the tests run: ./gradlew test -Pcompile-test-snippets