From 3485cc58a15845cf792c5cfbcf2f8d07f14aa21e Mon Sep 17 00:00:00 2001 From: Jaime Wren Date: Thu, 17 Jul 2025 14:23:02 -0700 Subject: [PATCH 1/2] Initial presubmit.yaml for the Gradle build of this project - This adds two checks: Build Plugin & Verify Plugin --- third_party/.github/workflows/presubmit.yaml | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 third_party/.github/workflows/presubmit.yaml diff --git a/third_party/.github/workflows/presubmit.yaml b/third_party/.github/workflows/presubmit.yaml new file mode 100644 index 000000000..79818f775 --- /dev/null +++ b/third_party/.github/workflows/presubmit.yaml @@ -0,0 +1,31 @@ +name: presubmit + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 # Use the latest stable version of actions/checkout + + - name: Set up JDK + uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk + with: + distribution: 'temurin' # Recommended distribution + java-version: '21' # Match version in build.gradle.kts + cache: 'gradle' # Cache Gradle dependencies + + - name: Build Plugin + run: ./gradlew buildPlugin + + - name: Verify Plugin + run: ./gradlew verifyPlugin && ./gradlew verifyPluginProjectConfiguration && ./gradlew verifyPluginSignature && ./gradlew verifyPluginStructure From 1096402c4a86fdec7496b5269433de84b752e73e Mon Sep 17 00:00:00 2001 From: Jaime Wren Date: Thu, 17 Jul 2025 14:26:19 -0700 Subject: [PATCH 2/2] Initial presubmit.yaml for the Gradle build of this project - This adds two checks: Build Plugin & Verify Plugin --- {third_party/.github => .github}/workflows/presubmit.yaml | 2 ++ 1 file changed, 2 insertions(+) rename {third_party/.github => .github}/workflows/presubmit.yaml (91%) diff --git a/third_party/.github/workflows/presubmit.yaml b/.github/workflows/presubmit.yaml similarity index 91% rename from third_party/.github/workflows/presubmit.yaml rename to .github/workflows/presubmit.yaml index 79818f775..147ce22dc 100644 --- a/third_party/.github/workflows/presubmit.yaml +++ b/.github/workflows/presubmit.yaml @@ -26,6 +26,8 @@ jobs: - name: Build Plugin run: ./gradlew buildPlugin + working-directory: third_party - name: Verify Plugin run: ./gradlew verifyPlugin && ./gradlew verifyPluginProjectConfiguration && ./gradlew verifyPluginSignature && ./gradlew verifyPluginStructure + working-directory: third_party