X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=2f548a0eef09d4248c108d3ba55ab2d00a7f5223;hb=74aeaae0398618a907099b1f67e85fed96af97b1;hp=8fd1920686e00e0dc458d732dcc7447effdb026e;hpb=f06cc469150312e33a65c59d01341e038922f0f1;p=poolifier.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fd19206..2f548a0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: - master pull_request: + types: [opened, synchronize, reopened] workflow_dispatch: inputs: withBenchmark: @@ -47,11 +48,10 @@ jobs: CI: true - name: Sonar Code Analysis - if: "github.repository == 'pioardi/poolifier' && matrix.node-version == '14.x'" - run: | - npm run sonar + if: "github.repository == 'poolifier/poolifier' && matrix.node-version == '14.x'" + uses: sonarsource/sonarcloud-github-action@master env: - GITHUB_TOKEN: ${{ secrets.USER_TOKEN }} # Needed to get PR information, if any + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Benchmark