Skip to content

Commit

Permalink
Create sonar-project.properties and build.yml files
Browse files Browse the repository at this point in the history
Added sonar-project.properties file to define the details of the project for SonarQube analysis. Also, the build.yml file has been included, configuring the SonarCloud analysis in Github actions. It allows for a continuous analysis of the code, enhancing the development consistency.
  • Loading branch information
MairwunNx committed Mar 8, 2024
1 parent 1f20b53 commit db01ae4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5 changes: 5 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sonar.projectKey=bytekodex_bytekot-painter
sonar.organization=bytekodex

sonar.projectName=bytekot-painter
sonar.projectVersion=1.0.0

0 comments on commit db01ae4

Please sign in to comment.