added sonar analysis
This commit is contained in:
25
.gitea/workflow/demo.yaml
Normal file
25
.gitea/workflow/demo.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
on:
|
||||
# Trigger analysis when pushing to your main branches, and when creating a pull request.
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
- develop
|
||||
- 'releases/**'
|
||||
run-name: ${{ gitea.actor }} is Scanning Code 🚀
|
||||
name: SonarQube Scan
|
||||
jobs:
|
||||
sonarqube:
|
||||
name: SonarQube Scan
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
- name: SonarQube Scan
|
||||
uses: kitabisa/sonarqube-action@v1.2.0
|
||||
with:
|
||||
host: https://sonar.ailaplacelab.com
|
||||
login: sqa_a3988da69583c0ae606dae085f14e6ec901675f7
|
Reference in New Issue
Block a user