From 96c43391182d6aeaf4af45599b1fb091bbc6d85b Mon Sep 17 00:00:00 2001 From: Pawel Pograniczny Date: Fri, 5 Apr 2024 12:06:50 +0200 Subject: [PATCH] ci: modify github workflow to run sq analysis --- .github/workflows/tests.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 22ade60..29c4c9d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 \ No newline at end of file