Update spring cloud #1132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sonar | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
sonarcloud: | |
runs-on: ubuntu-16.04 | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: Make Maven Wrapper executable | |
if: contains(matrix.os, 'win') == false | |
run: | | |
chmod +x ./mvnw | |
- name: Analyze with SonarCloud | |
# set environment variables: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# run sonar maven plugin: | |
run: | | |
./mvnw verify sonar:sonar --file pom.xml --errors --batch-mode --lax-checksums -DskipTests=true -P"module_java","test-jar","dev" -Dsonar.projectKey=customiere -Dsonar.organization=alexrogalskiy-github -Dsonar.host.url=https://sonarcloud.io/ -Dsonar.login=$SONAR_TOKEN -Dsonar.coverage.jacoco.xmlReportPaths=./build/site/jacoco/jacoco.xml |