branches:
- master
pull_request:
+ types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
withBenchmark:
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