mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 22: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:
|
run:
|
||||||
working-directory: .
|
working-directory: .
|
||||||
steps:
|
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
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
# Execution des tests unitaires avec npm run test
|
# Exécution des tests unitaires avec npm run test
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
services:
|
services:
|
||||||
@ -43,13 +43,13 @@ jobs:
|
|||||||
POSTGRES_DB: testdb
|
POSTGRES_DB: testdb
|
||||||
|
|
||||||
sonarqube:
|
sonarqube:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: SonarQube Scan
|
- name: SonarQube Scan
|
||||||
uses: sonarsource/sonarqube-scan-action@<action version>
|
uses: sonarsource/sonarqube-scan-action@<action version>
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
|
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user