From 9668f4d9be87a38a49567a8904cc41eb164d313a Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Thu, 22 Apr 2021 12:07:21 +0200 Subject: [PATCH] add kotlin code checks Signed-off-by: Andy Scherzinger --- .github/workflow/check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflow/check.yml diff --git a/.github/workflow/check.yml b/.github/workflow/check.yml new file mode 100644 index 000000000..261effcd2 --- /dev/null +++ b/.github/workflow/check.yml @@ -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 }}