Skip to content

Commit 42c2277

Browse files
committed
bazel tests
1 parent c464323 commit 42c2277

23 files changed

+10
-37
lines changed
File renamed without changes.

.github/workflows/sdk-platform-java-ci.yaml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
- name: Install all modules using Java 11
210210
shell: bash
211211
run: |
212-
mvn -V -B -ntp clean install -DskipTests -Dfmt.skip
212+
mvn -V -B -ntp clean install -DskipTests -Dfmt.skip -Dcheckstyle.skip
213213
- uses: actions/setup-java@v3
214214
with:
215215
java-version: 8
@@ -243,39 +243,6 @@ jobs:
243243
./gradlew clean build publishToMavenLocal sourcesJar allJars
244244
popd
245245
246-
lint:
247-
needs: filter
248-
if: ${{ needs.filter.outputs.library == 'true' }}
249-
runs-on: ubuntu-22.04
250-
steps:
251-
- uses: actions/checkout@v4
252-
- uses: actions/setup-java@v4
253-
with:
254-
java-version: 17
255-
distribution: temurin
256-
cache: maven
257-
- run: java -version
258-
- name: Java Linter
259-
# Exclude the root project
260-
run: mvn -B -ntp fmt:check
261-
262-
compatibility:
263-
needs: filter
264-
if: ${{ needs.filter.outputs.library == 'true' }}
265-
runs-on: ubuntu-22.04
266-
steps:
267-
- uses: actions/checkout@v4
268-
- uses: actions/setup-java@v4
269-
with:
270-
java-version: 11
271-
distribution: temurin
272-
cache: maven
273-
- run: java -version
274-
- name: Compatibility check
275-
# package jar so that gapic-generator-java module can use
276-
# testlib modules of gax
277-
run: mvn package clirr:check -DskipTests -Dfmt.skip
278-
279246
build-java8-showcase:
280247
needs: filter
281248
if: ${{ needs.filter.outputs.library == 'true' }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ sdist/
1414
.installed.cfg
1515
*.egg
1616
MANIFEST
17+
bazel-bin
18+
bazel-google-cloud-java-target
19+
bazel-out
20+
bazel-testlogs
21+
MODULE.bazel*
1722

1823
.flattened-pom.xml
1924

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bazelisk 1.28.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
88
# over the generator dependencies.
99
local_repository(
1010
name = "com_google_api_gax_java",
11-
path = "gax-java",
11+
path = "sdk-platform-java/gax-java",
1212
)
1313

1414
load("@com_google_api_gax_java//:repository_rules.bzl", "com_google_api_gax_java_properties")
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)