mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Code Quality Checks
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches: [master, develop]
|
|
|
|
jobs:
|
|
check:
|
|
name: Project Check Suite
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run code quality check suite
|
|
run: ./tools/check/check_code_quality.sh
|
|
|
|
klint:
|
|
name: Kotlin Linter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run klint
|
|
run: |
|
|
curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.36.0/ktlint && chmod a+x ktlint
|
|
./ktlint --android --experimental -v
|
|
|
|
android-lint:
|
|
name: Android Linter
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Lint analysis of the SDK
|
|
run: ./gradlew clean :matrix-sdk-android:lintRelease --stacktrace
|
|
- name: Upload reports
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: report-lint-andorid-sdk
|
|
path: matrix-sdk-android/build/reports/*.*
|