From c0f8fbef39495fb1d9dc4e4997bad0dd65c9bf04 Mon Sep 17 00:00:00 2001 From: Deep Vijay Poharkar Date: Tue, 6 May 2025 13:09:51 +0530 Subject: [PATCH 1/3] added sonarqube, todo: key --- .github/workflows/healthcheck.yml | 12 ++++++++++++ .github/workflows/npm-publish.yaml | 12 ++++++++++++ sonar-project.properties | 1 + 3 files changed, 25 insertions(+) create mode 100644 sonar-project.properties diff --git a/.github/workflows/healthcheck.yml b/.github/workflows/healthcheck.yml index 7c55941..897fb93 100644 --- a/.github/workflows/healthcheck.yml +++ b/.github/workflows/healthcheck.yml @@ -7,8 +7,20 @@ on: - master jobs: + sonarqube-analysis: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: SonarQube Analysis + uses: SonarSource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build: runs-on: ubuntu-latest + needs: sonarqube-analysis env: LT_USERNAME: ${{ secrets.LT_USERNAME }} LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index ae7c5b8..e0789b5 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -6,9 +6,21 @@ on: types: [published] jobs: + sonarqube-analysis: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: SonarQube Analysis + uses: SonarSource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build: if: startsWith(github.ref, 'refs/tags/prod-') runs-on: ubuntu-latest + needs: sonarqube-analysis steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..b15fe77 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +#todo From 7a8ca0121b8ea78509f1835eaa8ecc3277557c0a Mon Sep 17 00:00:00 2001 From: Deep Vijay Poharkar Date: Tue, 6 May 2025 15:26:28 +0530 Subject: [PATCH 2/3] added key --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index b15fe77..c0dcff1 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1 +1 @@ -#todo +sonar.projectKey=LambdaTest_node-tunnel_AZalBeyM-ZKsnB8M0r2U \ No newline at end of file From 28039d6de0fe7414123a79b1ad9148a9f7a45172 Mon Sep 17 00:00:00 2001 From: Deep Vijay Poharkar Date: Tue, 6 May 2025 18:03:12 +0530 Subject: [PATCH 3/3] removed build constraint --- .github/workflows/healthcheck.yml | 1 - .github/workflows/npm-publish.yaml | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/.github/workflows/healthcheck.yml b/.github/workflows/healthcheck.yml index 897fb93..a68645a 100644 --- a/.github/workflows/healthcheck.yml +++ b/.github/workflows/healthcheck.yml @@ -20,7 +20,6 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build: runs-on: ubuntu-latest - needs: sonarqube-analysis env: LT_USERNAME: ${{ secrets.LT_USERNAME }} LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }} diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index e0789b5..ae7c5b8 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -6,21 +6,9 @@ on: types: [published] jobs: - sonarqube-analysis: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v2 - - - name: SonarQube Analysis - uses: SonarSource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} build: if: startsWith(github.ref, 'refs/tags/prod-') runs-on: ubuntu-latest - needs: sonarqube-analysis steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2