Skip to content
Permalink
Browse files
feat: initial code generation
  • Loading branch information
chingor13 committed Mar 4, 2021
0 parents commit 5baf6427cf1725553c92cc10dda1bcce45e33e51
Showing with 44,313 additions and 0 deletions.
  1. +10 −0 .github/CODEOWNERS
  2. +51 −0 .github/ISSUE_TEMPLATE/bug_report.md
  3. +21 −0 .github/ISSUE_TEMPLATE/feature_request.md
  4. +7 −0 .github/ISSUE_TEMPLATE/support_request.md
  5. +7 −0 .github/PULL_REQUEST_TEMPLATE.md
  6. +7 −0 .github/blunderbuss.yml
  7. +11 −0 .github/generated-files-bot.yml
  8. +19 −0 .github/readme/synth.py
  9. +2 −0 .github/release-please.yml
  10. 0 .github/snippet-bot.yml
  11. +2 −0 .github/trusted-contribution.yml
  12. +54 −0 .github/workflows/approve-readme.yaml
  13. +88 −0 .github/workflows/auto-release.yaml
  14. +83 −0 .github/workflows/ci.yaml
  15. +14 −0 .github/workflows/samples.yaml
  16. +17 −0 .gitignore
  17. +3 −0 .kokoro/build.bat
  18. +120 −0 .kokoro/build.sh
  19. +38 −0 .kokoro/coerce_logs.sh
  20. +13 −0 .kokoro/common.cfg
  21. +58 −0 .kokoro/common.sh
  22. +25 −0 .kokoro/continuous/common.cfg
  23. +12 −0 .kokoro/continuous/java8.cfg
  24. +55 −0 .kokoro/continuous/readme.cfg
  25. +89 −0 .kokoro/dependencies.sh
  26. +25 −0 .kokoro/nightly/common.cfg
  27. +37 −0 .kokoro/nightly/integration.cfg
  28. +7 −0 .kokoro/nightly/java11.cfg
  29. +7 −0 .kokoro/nightly/java7.cfg
  30. +3 −0 .kokoro/nightly/java8-osx.cfg
  31. +3 −0 .kokoro/nightly/java8-win.cfg
  32. +12 −0 .kokoro/nightly/java8.cfg
  33. +38 −0 .kokoro/nightly/samples.cfg
  34. +43 −0 .kokoro/populate-secrets.sh
  35. +13 −0 .kokoro/presubmit/clirr.cfg
  36. +34 −0 .kokoro/presubmit/common.cfg
  37. +12 −0 .kokoro/presubmit/dependencies.cfg
  38. +33 −0 .kokoro/presubmit/integration.cfg
  39. +7 −0 .kokoro/presubmit/java11.cfg
  40. +7 −0 .kokoro/presubmit/java7.cfg
  41. +3 −0 .kokoro/presubmit/java8-osx.cfg
  42. +3 −0 .kokoro/presubmit/java8-win.cfg
  43. +12 −0 .kokoro/presubmit/java8.cfg
  44. +12 −0 .kokoro/presubmit/linkage-monitor.cfg
  45. +13 −0 .kokoro/presubmit/lint.cfg
  46. +33 −0 .kokoro/presubmit/samples.cfg
  47. +45 −0 .kokoro/readme.sh
  48. +53 −0 .kokoro/release/bump_snapshot.cfg
  49. +49 −0 .kokoro/release/common.cfg
  50. +50 −0 .kokoro/release/common.sh
  51. +6 −0 .kokoro/release/drop.cfg
  52. +32 −0 .kokoro/release/drop.sh
  53. +6 −0 .kokoro/release/promote.cfg
  54. +34 −0 .kokoro/release/promote.sh
  55. +23 −0 .kokoro/release/publish_javadoc.cfg
  56. +58 −0 .kokoro/release/publish_javadoc.sh
  57. +30 −0 .kokoro/release/publish_javadoc11.cfg
  58. +55 −0 .kokoro/release/publish_javadoc11.sh
  59. +6 −0 .kokoro/release/snapshot.cfg
  60. +33 −0 .kokoro/release/snapshot.sh
  61. +19 −0 .kokoro/release/stage.cfg
  62. +45 −0 .kokoro/release/stage.sh
  63. +26 −0 .kokoro/trampoline.sh
  64. +15 −0 .repo-metadata.json
  65. +94 −0 CODE_OF_CONDUCT.md
  66. +139 −0 CONTRIBUTING.md
  67. +201 −0 LICENSE
  68. +144 −0 README.md
  69. +4 −0 codecov.yaml
  70. +97 −0 google-cloud-gkehub-bom/pom.xml
  71. +111 −0 google-cloud-gkehub/pom.xml
  72. +989 −0 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java
  73. +318 −0 ...e-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java
  74. +42 −0 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json
  75. +38 −0 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java
  76. +116 −0 ...-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java
  77. +679 −0 ...kehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java
  78. +115 −0 ...rc/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java
  79. +496 −0 ...ud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java
  80. +512 −0 ...cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java
  81. +59 −0 google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java
  82. +232 −0 ...e-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java
  83. +65 −0 grpc-google-cloud-gkehub-v1beta1/pom.xml
  84. +1,256 −0 ...oud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java
  85. +15 −0 java.header
  86. +10 −0 license-checks.xml
  87. +189 −0 pom.xml
  88. +42 −0 proto-google-cloud-gkehub-v1beta1/pom.xml
  89. +1,189 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java
  90. +141 −0 ...google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java
  91. +951 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java
  92. +100 −0 ...gle-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java
  93. +913 −0 ...ogle-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java
  94. +85 −0 ...d-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java
  95. +1,166 −0 ...e-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java
  96. +130 −0 ...kehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java
  97. +644 −0 ...e-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java
  98. +52 −0 ...kehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java
  99. +1,511 −0 ...-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java
  100. +172 −0 ...1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java
  101. +995 −0 ...gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java
  102. +82 −0 ...beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
  103. +1,042 −0 ...hub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
  104. +110 −0 ...a1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java
  105. +843 −0 ...ub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java
  106. +79 −0 ...1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java
  107. +643 −0 ...ogle-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java
  108. +52 −0 ...d-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java
  109. +648 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java
  110. +54 −0 ...oogle-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java
  111. +1,441 −0 ...google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java
  112. +170 −0 ...oud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java
  113. +2,335 −0 ...google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java
  114. +281 −0 ...oud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java
  115. +1,370 −0 ...le-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java
  116. +168 −0 ...gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java
  117. +1,421 −0 ...e-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java
  118. +157 −0 ...kehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java
  119. +4,191 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java
  120. +1,446 −0 ...google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java
  121. +166 −0 ...oud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java
  122. +223 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipName.java
  123. +533 −0 ...oogle-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java
  124. +576 −0 ...ogle-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java
  125. +1,318 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java
  126. +119 −0 ...-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java
  127. +1,848 −0 ...-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java
  128. +217 −0 ...loud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java
  129. +739 −0 ...o-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java
  130. +66 −0 ...cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java
  131. +751 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java
  132. +70 −0 ...-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java
  133. +814 −0 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java
  134. +75 −0 ...-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java
  135. +1,301 −0 ...e-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java
  136. +149 −0 ...kehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java
  137. +1,018 −0 ...loud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java
  138. +106 −0 ...ub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java
  139. +766 −0 ...oud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java
  140. +72 −0 ...b-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
  141. +679 −0 proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto
  142. +73 −0 renovate.json
  143. +84 −0 samples/install-without-bom/pom.xml
  144. +56 −0 samples/pom.xml
  145. +83 −0 samples/snapshot/pom.xml
  146. +47 −0 samples/snippets/pom.xml
  147. +33 −0 synth.metadata
  148. +32 −0 synth.py
  149. +6 −0 versions.txt
Validating CODEOWNERS rules …
@@ -0,0 +1,10 @@
# Code owners file.
# This file controls who is tagged for review for any given pull request.

# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

* @googleapis/yoshi-java

# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
@@ -0,0 +1,51 @@
---
name: Bug report
about: Create a report to help us improve

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/java-gkehub/issues
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform

If you are still having issues, please include as much information as possible:

#### Environment details

1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types
2. OS type and version:
3. Java version:
4. gkehub version(s):

#### Steps to reproduce

1. ?
2. ?

#### Code example

```java
// example
```

#### Stack trace
```
Any relevant stacktrace here.
```

#### External references such as API reference guides

- ?

#### Any additional information below


Following these steps guarantees the quickest resolution possible.

Thanks!
@@ -0,0 +1,21 @@
---
name: Feature request
about: Suggest an idea for this library

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**
What the problem is. Example: I'm always frustrated when [...]

**Describe the solution you'd like**
What you want to happen.

**Describe alternatives you've considered**
Any alternative solutions or features you've considered.

**Additional context**
Any other context or screenshots about the feature request.
@@ -0,0 +1,7 @@
---
name: Support request
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.

---

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
@@ -0,0 +1,7 @@
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-gkehub/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️
@@ -0,0 +1,7 @@
# Configuration for the Blunderbuss GitHub app. For more info see
# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss
assign_prs_by:
- labels:
- samples
to:
- googleapis/java-samples-reviewers
@@ -0,0 +1,11 @@
externalManifests:
- type: json
file: 'synth.metadata'
jsonpath: '$.generatedFiles[*]'
- type: json
file: '.github/readme/synth.metadata/synth.metadata'
jsonpath: '$.generatedFiles[*]'
ignoreAuthors:
- 'renovate-bot'
- 'yoshi-automation'
- 'release-please[bot]'
@@ -0,0 +1,19 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""This script is used to synthesize generated the README for this library."""

from synthtool.languages import java

java.custom_templates(["java_library/README.md"])
@@ -0,0 +1,2 @@
releaseType: java-yoshi
bumpMinorPreMajor: true
Empty file.
@@ -0,0 +1,2 @@
trustedContributors:
- renovate-bot
@@ -0,0 +1,54 @@
on:
pull_request:
name: auto-merge-readme
jobs:
approve:
runs-on: ubuntu-latest
if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme'
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
script: |
// only approve PRs from yoshi-automation
if (context.payload.pull_request.user.login !== "yoshi-automation") {
return;
}
// only approve PRs like "chore: release <release version>"
if (!context.payload.pull_request.title === "chore: regenerate README") {
return;
}
// only approve PRs with README.md and synth.metadata changes
const files = new Set(
(
await github.paginate(
github.pulls.listFiles.endpoint({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
})
)
).map(file => file.filename)
);
if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) {
return;
}
// approve README regeneration PR
await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Rubber stamped PR!',
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
});
// attach automerge label
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: ['automerge']
});
@@ -0,0 +1,88 @@
on:
pull_request:
name: auto-release
jobs:
approve:
runs-on: ubuntu-latest
if: contains(github.head_ref, 'release-please')
steps:
- uses: actions/github-script@v3
with:
github-token: ${{secrets.YOSHI_APPROVER_TOKEN}}
debug: true
script: |
// only approve PRs from release-please[bot]
if (context.payload.pull_request.user.login !== "release-please[bot]") {
return;
}
// only approve PRs like "chore(master): release <release version>"
if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) {
return;
}
// only approve PRs with pom.xml and versions.txt changes
const filesPromise = github.pulls.listFiles.endpoint({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
});
const changed_files = await github.paginate(filesPromise)
if ( changed_files.length < 1 ) {
console.log( "Not proceeding since PR is empty!" )
return;
}
if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) {
console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" )
return;
}
// trigger auto-release when
// 1) it is a SNAPSHOT release (auto-generated post regular release)
// 2) there are dependency updates only
// 3) there are no open dependency update PRs in this repo (to avoid multiple releases)
if (
context.payload.pull_request.body.includes("Fix") ||
context.payload.pull_request.body.includes("Build") ||
context.payload.pull_request.body.includes("Documentation") ||
context.payload.pull_request.body.includes("BREAKING CHANGES") ||
context.payload.pull_request.body.includes("Features")
) {
console.log( "Not auto-releasing since it is not a dependency-update-only release." );
return;
}
const promise = github.pulls.list.endpoint({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
const open_pulls = await github.paginate(promise)
if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) {
for ( const pull of open_pulls ) {
if ( pull.title.startsWith("deps: update dependency") ) {
console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." );
return;
}
}
}
// approve release PR
await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Rubber stamped release!',
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
});
// attach kokoro:force-run and automerge labels
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
labels: ['kokoro:force-run', 'automerge']
});
@@ -0,0 +1,83 @@
on:
push:
branches:
- master
pull_request:
name: ci
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: test
- name: coverage
uses: codecov/codecov-action@v1
with:
name: actions ${{matrix.java}}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.bat
env:
JOB_TYPE: test
dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- run: java -version
- run: .kokoro/dependencies.sh
linkage-monitor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- name: Install artifacts to local Maven repository
run: .kokoro/build.sh
shell: bash
- name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release)
uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: lint
clirr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
@@ -0,0 +1,14 @@
on:
pull_request:
name: samples
jobs:
checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Run checkstyle
run: mvn -P lint --quiet --batch-mode checkstyle:check
working-directory: samples/snippets

0 comments on commit 5baf642

Please sign in to comment.