From c1a8c5d9e7145d3329d74641739ca0634c9fb2bb Mon Sep 17 00:00:00 2001 From: Owain van Brakel Date: Wed, 11 Mar 2020 08:53:55 +0100 Subject: [PATCH] actions: Verify gradle wrapper only in the PR action --- .github/workflows/pr.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4395a67dac..8556d7fbe7 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,9 +16,17 @@ jobs: with: title-regex: '^([\w-/]+): \w+' - build: + validate: + name: Validate gradle wrapper runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: gradle/wrapper-validation-action@v1 + + build: name: Build + needs: [pr-lint, validate] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -40,8 +48,9 @@ jobs: run: ./gradlew build --stacktrace -x test -x checkstyleMain -x checkstyleTest --console=plain test: - runs-on: ubuntu-latest name: Test + needs: [pr-lint, validate] + runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -64,6 +73,7 @@ jobs: checkstyleMain: name: Checkstyle main + needs: [pr-lint, validate] runs-on: ubuntu-latest steps: @@ -87,6 +97,7 @@ jobs: checkstyleTest: name: Checkstyle test + needs: [pr-lint, validate] runs-on: ubuntu-latest steps: