7 types: [opened, synchronize, reopened]
13 description: 'With Benchmark?'
20 os: [windows-latest, macos-latest, ubuntu-latest]
21 node: ['16.x', '18.x', '20.x']
23 name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
25 runs-on: ${{ matrix.os }}
29 uses: actions/checkout@v4
31 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis. This is needed for better sonar
34 uses: pnpm/action-setup@v2
38 - name: Setup Node.js ${{ matrix.node }}
39 uses: actions/setup-node@v3
41 node-version: ${{ matrix.node }}
45 run: pnpm install --ignore-scripts
51 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
57 - name: Coverage Report
58 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
61 - name: Sonar Code Analysis
62 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
63 uses: sonarsource/sonarcloud-github-action@v2.0.0
65 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
69 if: github.event.inputs.withBenchmark