From f13877352ce69b9898abfb2dcdfd90d69369e6d4 Mon Sep 17 00:00:00 2001 From: Anita Stanisz <106669481+anita-stanisz-sonarsource@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:41:58 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a745f5..fe25cf5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,8 @@ on: pull_request: types: [opened, synchronize, reopened] jobs: - sonarcloud: - name: SonarCloud + sonarcloud_squad3: + name: SonarCloud_SQ3 runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -25,26 +25,5 @@ jobs: # -Dsonar.projectKey=ShaneFindley_react-base # -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - sonarcloud_squad2: - name: SonarCloud_SQ2 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Install dependencies - run: npm install - - name: Test and coverage - run: npm run test --coverage - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - # with: - # args: > - # -Dsonar.organization=shanefindley - # -Dsonar.projectKey=ShaneFindley_react-base - # -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_SQ2 }} - SONARCLOUD_URL: "https://squad-2-core.sc-dev.io" + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN}} + SONARCLOUD_URL: "https://squad-3-core.sc-dev.io"