mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Move dependency analysis to its own job
This commit is contained in:
parent
c093b3476f
commit
464735f829
1 changed files with 19 additions and 8 deletions
27
.github/workflows/quality.yml
vendored
27
.github/workflows/quality.yml
vendored
|
@ -97,6 +97,25 @@ jobs:
|
||||||
comment_id: ${{ steps.fc.outputs.comment-id }}
|
comment_id: ${{ steps.fc.outputs.comment-id }}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Gradle dependency analysis using https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin
|
||||||
|
dependency-analysis:
|
||||||
|
name: Dependency analysis
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Allow all jobs on main and develop. Just one per PR.
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref == 'refs/heads/main' && format('ktlint-main-{0}', github.sha) || github.ref == 'refs/heads/develop' && format('ktlint-develop-{0}', github.sha) || format('ktlint-{0}', github.ref) }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Dependency analysis
|
||||||
|
run: ./gradlew buildHealth --max-workers=1
|
||||||
|
- name: Upload dependency analysis
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dependency-analysis
|
||||||
|
path: build/reports/dependency-analysis/build-health-report.txt
|
||||||
|
|
||||||
# Lint for main module
|
# Lint for main module
|
||||||
android-lint:
|
android-lint:
|
||||||
name: Android Linter
|
name: Android Linter
|
||||||
|
@ -117,8 +136,6 @@ jobs:
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: Lint analysis
|
- name: Lint analysis
|
||||||
run: ./gradlew clean :vector:lint --stacktrace
|
run: ./gradlew clean :vector:lint --stacktrace
|
||||||
- name: Dependency analysis
|
|
||||||
run: ./gradlew buildHealth --max-workers=1
|
|
||||||
- name: Upload reports
|
- name: Upload reports
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
@ -126,12 +143,6 @@ jobs:
|
||||||
name: lint-report
|
name: lint-report
|
||||||
path: |
|
path: |
|
||||||
vector/build/reports/*.*
|
vector/build/reports/*.*
|
||||||
- name: Upload dependency analysis
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: dependency-analysis
|
|
||||||
path: build/reports/dependency-analysis/build-health-report.txt
|
|
||||||
|
|
||||||
# Lint for Gplay and Fdroid release APK
|
# Lint for Gplay and Fdroid release APK
|
||||||
apk-lint:
|
apk-lint:
|
||||||
|
|
Loading…
Reference in a new issue