forked from loafle/openapi-generator-original
Create sonar.yml
This commit is contained in:
parent
15d31f753d
commit
5220d7cd59
25
.github/workflows/sonar.yml
vendored
Normal file
25
.github/workflows/sonar.yml
vendored
Normal 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 }}
|
Loading…
x
Reference in New Issue
Block a user