strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
- node: ['18.x', '20.x', '21.x']
+ node: ['18.x', '20.x', 'latest']
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis. This is needed for better sonar
- name: Setup pnpm
- uses: pnpm/action-setup@v2
+ uses: pnpm/action-setup@v3
with:
version: 8
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm coverage
- # - name: Fix Coverage Report Paths
- # if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
- # working-directory: ./coverage
- # run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' lcov.info
-
- name: Check for SonarCloud Token Availability
id: sonar-token
shell: bash