2021-04-22 13:07:21 +03:00
|
|
|
name: Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ master, stable-* ]
|
|
|
|
|
2022-12-16 14:24:03 +03:00
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
|
|
|
|
2021-04-22 13:07:21 +03:00
|
|
|
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-12-16 14:24:03 +03:00
|
|
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
|
2022-05-18 17:40:00 +03:00
|
|
|
- name: Set up JDK 11
|
2022-12-16 14:24:03 +03:00
|
|
|
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b # 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 }}
|