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