mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 10:35:25 +00:00
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…
Reference in New Issue
Block a user