2021-04-22 13:07:21 +03:00
|
|
|
name: Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-03-17 15:46:44 +03:00
|
|
|
task: [ detekt, ktlintCheck ]
|
2021-04-22 13:07:21 +03:00
|
|
|
steps:
|
2022-03-08 02:22:35 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-05-18 17:40:00 +03:00
|
|
|
- name: Set up JDK 11
|
2022-03-01 02:14:47 +03:00
|
|
|
uses: actions/setup-java@v3
|
2021-04-22 13:07:21 +03:00
|
|
|
with:
|
2022-02-11 19:56:33 +03:00
|
|
|
distribution: "temurin"
|
2022-05-18 17:40:00 +03:00
|
|
|
java-version: 11
|
2021-04-22 13:07:21 +03:00
|
|
|
- name: Check ${{ matrix.task }}
|
|
|
|
run: ./gradlew ${{ matrix.task }}
|