Skip to content

Commit

Permalink
Merge pull request #150 from buckaroo-it/sonarqube
Browse files Browse the repository at this point in the history
Add GitHub action file
  • Loading branch information
Rinor12010 authored Oct 25, 2023
2 parents 568ff22 + 344d7fd commit bb0c4b8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- master
- develop
- 'bugfix/**'
pull_request:
types: [opened, synchronize, reopened]
name: SonarQube PR Analysis
jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Unique key for the project
sonar.projectKey=buckaroo:php_sdk

# Display name and version for the SonarQube UI
sonar.projectName=Buckaroo PHP SDK
sonar.projectVersion=1.0

# Path to the source code, relative to the sonar-project.properties file
sonar.sources=.

0 comments on commit bb0c4b8

Please sign in to comment.