push:
branches:
- master
- pull_request_target:
+ pull_request:
types: [opened, synchronize, reopened]
- branches:
- - master
jobs:
build:
runs-on: ubuntu-latest
- 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 == '16.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 }}