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.js ${{ matrix.node }}
37 uses: actions/setup-node@v3
39 node-version: ${{ matrix.node }}
49 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
55 - name: Coverage Report
56 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
59 - name: Sonar Code Analysis
60 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
61 uses: sonarsource/sonarcloud-github-action@v2.0.0
63 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
67 if: github.event.inputs.withBenchmark