Skip to content

Commit

Permalink
chore(java_templates): add lint/static analysis presubmit checks for …
Browse files Browse the repository at this point in the history
…samples (#727)

* chore(java_templates): add lint/static analysis presubmit checks for samples

* chore: fix trailing whitespace
chingor13 authored Aug 17, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e9ec04c commit c3caf07
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
pull_request:
name: samples
jobs:
lint:
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
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Run PMD & Spotbugs
run: mvn -P lint --quiet --batch-mode compile pmd:cpd-check spotbugs:check
working-directory: samples/snippets

0 comments on commit c3caf07

Please sign in to comment.