Create sonar.yml

This commit is contained in:
Jim Schubert 2020-01-24 22:13:08 -05:00 committed by GitHub
parent 15d31f753d
commit 5220d7cd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/sonar.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Sonar CI
on:
push:
branches:
- master
- '[4-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish to Sonar
run: mvn sonar:sonar \
-Dsonar.projectKey=OpenAPITools_openapi-generator \
-Dsonar.organization=openapitools \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONAR_LOGIN }} \
-Dsonar.branch.name=${{ github.ref }}