Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 579fdf1

Browse files
samples: add presubmit lint check
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java_templates): add lint/static analysis presubmit checks for samples * chore(java_templates): add lint/static analysis presubmit checks for samples * chore: fix trailing whitespace Source-Author: Jeff Ching <chingor@google.com> Source-Date: Mon Aug 17 14:29:16 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: c3caf0704f25a0c365f1c315e804a30b87c62a75 Source-Link: googleapis/synthtool@c3caf07 * chore(java_templates): stop running pmd/spotbugs checks for samples This was creating too much noise. We will revisit with other options and/or tune these checks. Source-Author: Jeff Ching <chingor@google.com> Source-Date: Wed Aug 19 12:26:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9602086c6c5b05db77950c7f7495a2a3868f3537 Source-Link: googleapis/synthtool@9602086
1 parent 9284998 commit 579fdf1

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/samples.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
pull_request:
3+
name: samples
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-java@v1
10+
with:
11+
java-version: 8
12+
- name: Run checkstyle
13+
run: mvn -P lint --quiet --batch-mode checkstyle:check
14+
working-directory: samples/snippets

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
1717
<dependency>
1818
<groupId>com.google.cloud</groupId>
1919
<artifactId>libraries-bom</artifactId>
20-
<version>9.0.0</version>
20+
<version>9.1.0</version>
2121
<type>pom</type>
2222
<scope>import</scope>
2323
</dependency>

synth.metadata

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-containeranalysis.git",
7-
"sha": "14bb9d3a1c70bf2823ea0e70ce1f3f8837a3031a"
7+
"sha": "9284998ec59114d875a84df00982110e3aa9084f"
88
}
99
},
1010
{
@@ -27,7 +27,7 @@
2727
"git": {
2828
"name": "synthtool",
2929
"remote": "https://github.com/googleapis/synthtool.git",
30-
"sha": "f8823dec98277a9516f2fb6fae9f58b3a59a23e1"
30+
"sha": "9602086c6c5b05db77950c7f7495a2a3868f3537"
3131
}
3232
}
3333
],
@@ -60,6 +60,7 @@
6060
".github/release-please.yml",
6161
".github/trusted-contribution.yml",
6262
".github/workflows/ci.yaml",
63+
".github/workflows/samples.yaml",
6364
".kokoro/build.bat",
6465
".kokoro/build.sh",
6566
".kokoro/coerce_logs.sh",

0 commit comments

Comments
 (0)