mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-19 09:22:29 +02:00
29 lines
690 B
YAML
29 lines
690 B
YAML
jobs:
|
|
sonarqube-analysis:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
|
|
- name: Set up Java 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Run SonarQube scan
|
|
run: |
|
|
npx sonar-scanner \
|
|
-Dsonar.projectKey=your_project_key \
|
|
-Dsonar.sources=. \
|
|
-Dsonar.host.url=http://localhost:9000 \
|
|
-Dsonar.login=admin \
|
|
-Dsonar.password=admin
|