Skip to content

Commit b336780

Browse files
authored
Initial presubmit.yaml for the Gradle build of this project (#9)
- This adds two checks: Build Plugin & Verify Plugin
1 parent 3ff92a1 commit b336780

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/presubmit.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: presubmit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build-and-test:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4 # Use the latest stable version of actions/checkout
19+
20+
- name: Set up JDK
21+
uses: actions/setup-java@v4 # https://github.com/marketplace/actions/setup-java-jdk
22+
with:
23+
distribution: 'temurin' # Recommended distribution
24+
java-version: '21' # Match version in build.gradle.kts
25+
cache: 'gradle' # Cache Gradle dependencies
26+
27+
- name: Build Plugin
28+
run: ./gradlew buildPlugin
29+
working-directory: third_party
30+
31+
- name: Verify Plugin
32+
run: ./gradlew verifyPlugin && ./gradlew verifyPluginProjectConfiguration && ./gradlew verifyPluginSignature && ./gradlew verifyPluginStructure
33+
working-directory: third_party

0 commit comments

Comments
 (0)