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
|
|
|
|
2022-06-10 09:03:43 +03:00
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
|
|
|
|
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:
|
2022-03-16 13:20:30 +03:00
|
|
|
task: [ detekt, ktlintCheck ]
|
2020-05-18 14:26:16 +03:00
|
|
|
steps:
|
2022-03-07 11:20:38 +03:00
|
|
|
- uses: actions/checkout@v3
|
2021-09-25 19:30:58 +03:00
|
|
|
- name: Set up JDK 11
|
2022-04-11 14:20:00 +03:00
|
|
|
uses: actions/setup-java@v3
|
2020-05-18 14:26:16 +03:00
|
|
|
with:
|
2022-01-20 12:37:32 +03:00
|
|
|
distribution: "temurin"
|
2021-09-25 19:30:58 +03:00
|
|
|
java-version: 11
|
2021-02-24 16:15:29 +03:00
|
|
|
- name: Check ${{ matrix.task }}
|
|
|
|
run: ./gradlew ${{ matrix.task }}
|