11 description: 'With Benchmark?'
16 runs-on: ubuntu-latest
20 node-version: [12.x, 14.x]
24 uses: actions/checkout@v2
26 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis. This is needed for better sonar
28 - name: Set node version to ${{ matrix.node-version }}
29 uses: actions/setup-node@v2
31 node-version: ${{ matrix.node-version }}
37 run: npm run build --if-present
42 - name: Tests & Coverage
49 - name: Sonar Code Analysis
50 if: "github.repository == 'pioardi/poolifier' && matrix.node-version == '14.x'"
54 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
55 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
58 if: github.event.inputs.withBenchmark
59 run: npm run benchmark