Create sonarqube.yml
This commit is contained in:
parent
0dd5173bc2
commit
6cbf060330
|
|
@ -0,0 +1,34 @@
|
|||
name: SonarQube Analysis
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev_odex25_hr" ]
|
||||
pull_request:
|
||||
branches: [ "dev_odex25_hr" ]
|
||||
|
||||
jobs:
|
||||
sonar:
|
||||
runs-on: sonarqube
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt || true
|
||||
pip install pylint-odoo || true
|
||||
|
||||
- name: SonarQube Scan
|
||||
uses: SonarSource/sonarqube-scan-action@v2
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.projectKey=odex25_standard_modules_dev_odex25_hr
|
||||
-Dsonar.sources=odex25_hr
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: "https://sonar.odex.sa"
|
||||
Loading…
Reference in New Issue