ci: split out apk linting
This commit is contained in:
parent
209a9b09c7
commit
f0adf29d12
|
@ -1,9 +1,9 @@
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request: {}
|
pull_request: { }
|
||||||
push:
|
push:
|
||||||
branches: [master, develop]
|
branches: [ master, develop ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
debug:
|
debug:
|
||||||
|
@ -24,15 +24,6 @@ jobs:
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: Lint ${{ matrix.target }} release
|
|
||||||
run: ./gradlew clean lint${{ matrix.target }}Release --stacktrace
|
|
||||||
- name: Upload ${{ matrix.target }} linting report
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: release-debug-linting-report-${{ matrix.target }}
|
|
||||||
path: |
|
|
||||||
vector/build/reports/*.*
|
|
||||||
- name: Assemble ${{ matrix.target }} debug apk
|
- name: Assemble ${{ matrix.target }} debug apk
|
||||||
run: ./gradlew assemble${{ matrix.target }}Debug --stacktrace
|
run: ./gradlew assemble${{ matrix.target }}Debug --stacktrace
|
||||||
- name: Upload ${{ matrix.target }} debug APKs
|
- name: Upload ${{ matrix.target }} debug APKs
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
name: Code Quality Checks
|
name: Code Quality Checks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request: {}
|
pull_request: { }
|
||||||
push:
|
push:
|
||||||
branches: [master, develop]
|
branches: [ master, develop ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
@ -44,3 +44,31 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: linting-report-android-sdk
|
name: linting-report-android-sdk
|
||||||
path: matrix-sdk-android/build/reports/*.*
|
path: matrix-sdk-android/build/reports/*.*
|
||||||
|
|
||||||
|
apk-lint:
|
||||||
|
name: Lint APK (${{ matrix.target }})
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref != 'refs/heads/master'
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
target: [ Gplay, Fdroid ]
|
||||||
|
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 ${{ matrix.target }} release
|
||||||
|
run: ./gradlew clean lint${{ matrix.target }}Release --stacktrace
|
||||||
|
- name: Upload ${{ matrix.target }} linting report
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: release-debug-linting-report-${{ matrix.target }}
|
||||||
|
path: |
|
||||||
|
vector/build/reports/*.*
|
||||||
|
|
Loading…
Reference in New Issue