From 5220d7cd59ce76c370cf5acf16272e13bd957910 Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Fri, 24 Jan 2020 22:13:08 -0500 Subject: [PATCH] Create sonar.yml --- .github/workflows/sonar.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/sonar.yml diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 00000000000..c99f2cf2981 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -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 }}