Run sonarqube as part of nightly build

This commit is contained in:
Michael Kaye 2022-03-01 13:17:25 +00:00
parent 7024ccb244
commit 82e0f4a1a9
1 changed files with 27 additions and 3 deletions

View File

@ -14,7 +14,6 @@ env:
-Porg.gradle.jvmargs=-Xmx4g -Porg.gradle.jvmargs=-Xmx4g
-Porg.gradle.parallel=false -Porg.gradle.parallel=false
-PallWarningsAsErrors=false -PallWarningsAsErrors=false
jobs: jobs:
# Build Android Tests [Matrix SDK] # Build Android Tests [Matrix SDK]
build-android-test-matrix-sdk: build-android-test-matrix-sdk:
@ -263,8 +262,6 @@ jobs:
# No concurrency required, runs every time on a schedule. # No concurrency required, runs every time on a schedule.
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
ref: develop
- name: Set up Python 3.8 - name: Set up Python 3.8
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
@ -311,12 +308,39 @@ jobs:
emulator.log emulator.log
failure_screenshots/ failure_screenshots/
sonarqube:
runs-on: macos-latest
if: always()
needs:
- integration-tests
- ui-tests
# - unit-tests TODO: code coverage from here too
- build-android-test-matrix-sdk
- build-android-test-app
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-
- run: ./gradlew sonarqube $CI_GRADLE_ARG_PROPERTIES
env:
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# Notify the channel about scheduled runs, do not notify for manually triggered runs # Notify the channel about scheduled runs, do not notify for manually triggered runs
notify: notify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- integration-tests - integration-tests
- ui-tests - ui-tests
# - unit-tests
- build-android-test-matrix-sdk
- build-android-test-app
- sonarqube
if: always() && github.event_name != 'workflow_dispatch' if: always() && github.event_name != 'workflow_dispatch'
# No concurrency required, runs every time on a schedule. # No concurrency required, runs every time on a schedule.
steps: steps: