Create linter.yml

This commit is contained in:
Matt Stannett 2022-12-19 22:57:36 +13:00 committed by GitHub
parent 6411df2a44
commit d4308396b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.github/workflows/linter.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Linter
on:
pull_request:
branches: [ main ]
# Allow manual triggering, refs https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
workflow_dispatch:
jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run check style
uses: nikitasavinov/checkstyle-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: 'github-pr-check'
tool_name: 'testtool'