Merge pull request #8048 from nextcloud/HamonizeCheckOnCI

Harmonize check CI jobs
This commit is contained in:
Tobias Kaminsky 2021-02-25 07:34:38 +01:00 committed by GitHub
commit 5511cd4046
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 23 deletions

View file

@ -1,18 +1,21 @@
name: Detekt
name: Check
on:
pull_request:
branches: [ master, stable-* ]
jobs:
detekt:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [ detekt, ktlint ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Run detekt
run: ./gradlew detekt
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}

View file

@ -1,18 +0,0 @@
name: KtLint
on:
pull_request:
branches: [ master, stable-* ]
jobs:
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Runt ktlint
run: ./gradlew ktlint