X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=401dbfa8ed6d3a32f827db4707da24fe65e7c667;hb=1a3d7d3d4f45282778f34d5c465f213e7f7ca0ad;hp=e4d010d96454826abb37a8e9732825921e71c345;hpb=0f90f59a611c1a6e45afb9b09c4387129c7a7ce2;p=e-mobility-charging-stations-simulator.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4d010d9..401dbfa8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,14 +5,12 @@ on: - master 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,9 +31,10 @@ 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.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 }} build-docker: runs-on: ubuntu-latest