Skip to content

Commit

Permalink
ci: modify github workflow to run sq analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelTshDev committed Apr 5, 2024
1 parent 8268540 commit 96c4339
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,27 @@ jobs:
- run: cp .env.dist .env
- run: npm ci
- run: npm run lint
# - run: npm run test
- run: npm run test-coverage
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage/

sonarqube-analysis:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: coverage
path: coverage/
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: sqp_cdf796a422338de063410c70229532ccd1326375
SONAR_HOST_URL: https://sonarqube.aws.tshdev.io

0 comments on commit 96c4339

Please sign in to comment.