2021-02-24 16:15:29 +03:00
|
|
|
name: Check
|
2020-05-18 14:26:16 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-01-05 16:42:56 +03:00
|
|
|
branches: [ master, stable-* ]
|
2020-05-18 14:26:16 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-02-24 16:15:29 +03:00
|
|
|
check:
|
2020-05-18 14:26:16 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-24 16:15:29 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
task: [ detekt, ktlint ]
|
2020-05-18 14:26:16 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2021-02-24 16:15:29 +03:00
|
|
|
- name: Check ${{ matrix.task }}
|
|
|
|
run: ./gradlew ${{ matrix.task }}
|