added sonar analysis

This commit is contained in:
2024-11-27 01:13:01 +09:00
parent 3a915dd278
commit 75f9973a05

25
.gitea/workflow/demo.yaml Normal file
View 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