7 types: [opened, synchronize, reopened]
13 description: 'With Benchmark?'
18 runs-on: ${{ matrix.os }}
22 os: [windows-latest, macos-latest, ubuntu-latest]
23 node: ['16.x', '18.x', '20.x']
27 uses: actions/checkout@v3
29 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis. This is needed for better sonar
32 uses: pnpm/action-setup@v2
36 - name: Setup node ${{ matrix.node }}
37 uses: actions/setup-node@v3
39 node-version: ${{ matrix.node }}
54 - name: Coverage Report
55 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
58 - name: Sonar Code Analysis
59 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
60 uses: sonarsource/sonarcloud-github-action@v1.9.1
62 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
63 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
66 if: github.event.inputs.withBenchmark