2021-04-22 11:07:21 +01:00
|
|
|
name: Check
|
|
|
|
|
|
|
|
on:
|
2022-12-16 14:13:55 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
2021-04-22 11:07:21 +01:00
|
|
|
|
2022-12-16 11:24:03 +00:00
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
|
|
|
|
2023-06-08 12:58:40 +01:00
|
|
|
concurrency:
|
|
|
|
group: check-kotlin-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-04-22 11:07:21 +01:00
|
|
|
jobs:
|
2022-12-16 14:13:55 +00:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
task: [ detekt, ktlintCheck ]
|
|
|
|
steps:
|
2023-10-24 00:18:32 +01:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-04-14 18:20:30 +01:00
|
|
|
- name: Set up JDK 17
|
2023-09-26 00:31:38 +01:00
|
|
|
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
|
2022-12-16 14:13:55 +00:00
|
|
|
with:
|
|
|
|
distribution: "temurin"
|
2023-04-14 18:20:30 +01:00
|
|
|
java-version: 17
|
2022-12-16 14:13:55 +00:00
|
|
|
- name: Check ${{ matrix.task }}
|
|
|
|
run: ./gradlew ${{ matrix.task }}
|