Skip to content

Commit c3caf07

Browse files
authored
chore(java_templates): add lint/static analysis presubmit checks for samples (#727)
* chore(java_templates): add lint/static analysis presubmit checks for samples * chore: fix trailing whitespace
1 parent e9ec04c commit c3caf07

File tree

1 file changed

+24
-0
lines changed
  • synthtool/gcp/templates/java_library/.github/workflows

1 file changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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
15+
static:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions/setup-java@v1
20+
with:
21+
java-version: 8
22+
- name: Run PMD & Spotbugs
23+
run: mvn -P lint --quiet --batch-mode compile pmd:cpd-check spotbugs:check
24+
working-directory: samples/snippets

0 commit comments

Comments
 (0)