Skip to content

[_]: fix/handle-shards-deletion-when-no-mirrors-exist #56

[_]: fix/handle-shards-deletion-when-no-mirrors-exist

[_]: fix/handle-shards-deletion-when-no-mirrors-exist #56

name: SonarCloud code analysis
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
strategy:
matrix:
node-version: [16.x]
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- name: Install dependencies
run: yarn --ignore-engines
- name: Test and coverage
run: yarn test:cov
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}