mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2026-03-22 04:39:24 +00:00
* TOOLS-23: sonar code analysis * enable pr * fix pr * added dep * added maven cerdentials * added maven creds * split mvn build and sonar analysis * test * added MAVEN_REPO_USERNAME ? * added maven env * disabled test * trigger * job matrix * added opensync-ext-interface * disabled opensync-ext-cloud * test * enabled opensync-ext-cloud * added opensync-ext-static * test * enabled opensync-gateway * test * added sonar.projectKey * fix * fix2 * separated mvn build and sonar steps * test * test * test * test * test * added project key * test * test * test * test * enable caching * disabled cache * cleanup * disabled PR Co-authored-by: Eugene Taranov <eugene@taranov.me>
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
name: Run sonar analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
SONAR_URL: https://sonarcloud.io
|
|
SONAR_ORGANIZATION: telecominfraproject
|
|
|
|
jobs:
|
|
sonar:
|
|
strategy:
|
|
matrix:
|
|
project:
|
|
- opensync-ext-cloud
|
|
- opensync-ext-interface
|
|
- opensync-ext-static
|
|
- opensync-gateway
|
|
- opensync-gateway-build
|
|
- opensync-gateway-cloud-process
|
|
- opensync-gateway-static-process
|
|
- opensync-gateway-cloud-docker
|
|
- opensync-gateway-static-docker
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: wlan-cloud-opensync-controller
|
|
fetch-depth: 0
|
|
- name: Checkout dependency Telecominfraproject/wlan-cloud-root
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: Telecominfraproject/wlan-cloud-root
|
|
path: wlan-cloud-root
|
|
fetch-depth: 0
|
|
- name: Set up JDK 14
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 14
|
|
server-id: tip-wlan-cloud-maven-repo
|
|
server-username: MAVEN_REPO_USERNAME
|
|
server-password: MAVEN_REPO_PASSWORD
|
|
- name: Maven build
|
|
working-directory: wlan-cloud-opensync-controller/${{ matrix.project }}
|
|
env:
|
|
MAVEN_REPO_USERNAME: build-pipeline
|
|
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
|
|
run: mvn clean install
|
|
- name: Run sonar
|
|
working-directory: wlan-cloud-opensync-controller/${{ matrix.project }}
|
|
env:
|
|
MAVEN_REPO_USERNAME: build-pipeline
|
|
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }}
|
|
run: mvn sonar:sonar -Dsonar.host.url=${{ env.SONAR_URL }} -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.organization=${{ env.SONAR_ORGANIZATION }} -Dsonar.projectKey=com.telecominfraproject.wlan:${{ matrix.project }}
|