From eb2dd0bc8a02f21756b2edbc43fb74965105406d Mon Sep 17 00:00:00 2001 From: Henrique Melo Date: Wed, 1 Nov 2023 10:57:48 -0300 Subject: [PATCH] (#157) correcao --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28e139b..0afd1eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: types: [opened, synchronize, reopened] jobs: test-unit: - name: Test Unit + name: Test Unit & Scan runs-on: ubuntu-latest steps: - name: Checkout @@ -22,6 +22,12 @@ jobs: env: TEST: unit + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + test-e2e: name: Test E2E runs-on: ubuntu-latest @@ -39,8 +45,8 @@ jobs: TEST: e2e sonarcloud: - needs: ['test-unit', 'test-e2e'] name: SonarCloud + needs: ['test-unit', 'test-e2e'] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3