mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
added sonar
This commit is contained in:
parent
f108be4235
commit
f739b46a22
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
run:
|
||||
working-directory: .
|
||||
steps:
|
||||
# Nous allons utiliser l'action checkout qui récupère le code source depuis GitHub .
|
||||
# Nous allons utiliser l'action checkout qui récupère le code source depuis GitHub.
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@ -29,7 +29,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
# Execution des tests unitaires avec npm run test
|
||||
# Exécution des tests unitaires avec npm run test
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
services:
|
||||
@ -43,13 +43,13 @@ jobs:
|
||||
POSTGRES_DB: testdb
|
||||
|
||||
sonarqube:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: SonarQube Scan
|
||||
uses: sonarsource/sonarqube-scan-action@<action version>
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: SonarQube Scan
|
||||
uses: sonarsource/sonarqube-scan-action@<action version>
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user