X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=401dbfa8ed6d3a32f827db4707da24fe65e7c667;hb=001f27299de9ed07cf2bd4d5fd4045eb67a91e56;hp=c3cf2b49521a9347713a23a8ff73d24f32de8d73;hpb=6f9f188b8335f5cc9fcb0fe9ba2e72525b70231a;p=e-mobility-charging-stations-simulator.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3cf2b49..401dbfa8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,16 +3,14 @@ on: push: branches: - master - pull_request_target: + pull_request: types: [opened, synchronize, reopened] - branches: - - master jobs: build: runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x] + node-version: [14.x, 16.x] steps: - uses: actions/checkout@v2 with: @@ -33,7 +31,8 @@ jobs: - name: npm run coverage run: npm run coverage - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + if: "github.repository == 'jerome-benoit/charging-stations-simulator' && matrix.node-version == '14.x'" + uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}