add kotlin code checks

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-04-22 12:07:21 +02:00
parent 8d76b21385
commit 9668f4d9be
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

21
.github/workflow/check.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Check
on:
pull_request:
branches: [ master, stable-* ]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [ detekt, ktlint ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}