push:
branches:
- master
- pull_request:
+ pull_request_target:
types: [opened, synchronize, reopened]
branches:
- master
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [14.x]
+ node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
with:
- name: npm run coverage
run: npm run coverage
- name: SonarCloud Scan
+ 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