Skip to content

Commit

Permalink
update: github action sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
WangZhiYao authored May 2, 2024
1 parent c3d6008 commit 7d64d3d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/build.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: SonarQube analysis

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

permissions:
pull-requests: read

jobs:
Analysis:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Analyze with SonarQube
uses: SonarSource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
projectBaseDir: app/src
args:
-Dsonar.projectKey=Keeper
-Dsonar.projectName=Keeper
-Dsonar.sources=main/kotlin
-Dsonar.tests=test/kotlin

0 comments on commit 7d64d3d

Please sign in to comment.