mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #8048 from nextcloud/HamonizeCheckOnCI
Harmonize check CI jobs
This commit is contained in:
commit
5511cd4046
2 changed files with 8 additions and 23 deletions
|
@ -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 }}
|
18
.github/workflows/ktlint.yml
vendored
18
.github/workflows/ktlint.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue