7 types: [opened, synchronize, reopened]
15 os: [windows-latest, macos-latest, ubuntu-latest]
16 node: ['16.x', '18.x', '20.x']
18 name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
20 runs-on: ${{ matrix.os }}
24 uses: actions/checkout@v4
26 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis. This is needed for better sonar
29 uses: pnpm/action-setup@v2
33 - name: Setup Node.js ${{ matrix.node }}
34 uses: actions/setup-node@v3
36 node-version: ${{ matrix.node }}
40 run: pnpm install --ignore-scripts
46 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
52 - name: Coverage Report
53 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
56 - name: Sonar Code Analysis
57 if: ${{ github.repository == 'poolifier/poolifier' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
58 uses: sonarsource/sonarcloud-github-action@v2.0.1
60 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}