From 509d4db4cabfe3d9ca95ea62cdfe68a88e891256 Mon Sep 17 00:00:00 2001 From: eum602 Date: Sun, 1 Oct 2023 16:16:32 -0500 Subject: [PATCH] customize checks and release actions for lacchain --- .github/workflows/lacchain-checks.yml | 36 +++++++++++++++++++ .../lacchain-gradle-wrapper-validation.yml | 11 ++++++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/lacchain-checks.yml create mode 100644 .github/workflows/lacchain-gradle-wrapper-validation.yml diff --git a/.github/workflows/lacchain-checks.yml b/.github/workflows/lacchain-checks.yml new file mode 100644 index 00000000000..a106bd1ee75 --- /dev/null +++ b/.github/workflows/lacchain-checks.yml @@ -0,0 +1,36 @@ +name: lacchain-checks +on: + push: + branches: [ lacchain-release ] + pull_request: + workflow_dispatch: + +jobs: + spotless: + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: adopt + java-version: 17 + cache: gradle + - name: spotless + run: ./gradlew --no-daemon --parallel clean spotlessCheck + javadoc_17: + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Set up Java 17 + uses: actions/setup-java@v3 + with: + distribution: adopt + java-version: 17 + cache: gradle + - name: javadoc (JDK 17) + run: ./gradlew --no-daemon clean javadoc diff --git a/.github/workflows/lacchain-gradle-wrapper-validation.yml b/.github/workflows/lacchain-gradle-wrapper-validation.yml new file mode 100644 index 00000000000..d711940b9ab --- /dev/null +++ b/.github/workflows/lacchain-gradle-wrapper-validation.yml @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: Apache-2.0 +name: "Lacchain Validate Gradle Wrapper" +on: [push, pull_request] + +jobs: + validation: + name: "Gradle Wrapper Validation" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gradle/wrapper-validation-action@v1