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
|
|
|
|
|
2023-06-08 14:53:06 +03:00
|
|
|
concurrency:
|
|
|
|
group: check-kotlin-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
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-10-07 18:45:45 +03:00
|
|
|
task: [ detekt, spotlessKotlinCheck ]
|
2020-05-18 14:26:16 +03:00
|
|
|
steps:
|
2023-10-23 14:50:49 +03:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
|
2023-05-08 19:35:05 +03:00
|
|
|
- name: Set up JDK 17
|
2023-09-25 16:36:09 +03:00
|
|
|
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3
|
2020-05-18 14:26:16 +03:00
|
|
|
with:
|
2022-01-20 12:37:32 +03:00
|
|
|
distribution: "temurin"
|
2023-05-08 19:35:05 +03:00
|
|
|
java-version: 17
|
2021-02-24 16:15:29 +03:00
|
|
|
- name: Check ${{ matrix.task }}
|
|
|
|
run: ./gradlew ${{ matrix.task }}
|