From e6c3eb40c8080b09e41d9888cf215a5ac94d2a75 Mon Sep 17 00:00:00 2001 From: Pavlo Shevchenko Date: Thu, 14 Mar 2024 08:50:00 +0100 Subject: [PATCH] Add PR validation workflows --- .../workflows/gradle-wrapper-validation.yml | 10 +++++++ .github/workflows/verify.yml | 29 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/gradle-wrapper-validation.yml create mode 100644 .github/workflows/verify.yml diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 0000000..95cce8b --- /dev/null +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,10 @@ +name: "Validate Gradle Wrapper" +on: [push, pull_request] + +jobs: + validation: + name: "Validation" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gradle/wrapper-validation-action@v2 diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..0a77f2a --- /dev/null +++ b/.github/workflows/verify.yml @@ -0,0 +1,29 @@ +name: 'Verify' + +on: + push: + branches-ignore: + - gh-pages + pull_request: + branches: + - '*' + +jobs: + build-and-verify: + runs-on: 'ubuntu-latest' + steps: + - uses: actions/checkout@v4 + - name: 'Set up JDK 8' + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 8 + - name: 'Set up JDK 21' + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + - name: 'Build' + uses: gradle/gradle-build-action@v3 + with: + arguments: "build"