Skip to content

[PB-1482]: feat/compatibility-with-mongo-db-to-4.4 #32

[PB-1482]: feat/compatibility-with-mongo-db-to-4.4

[PB-1482]: feat/compatibility-with-mongo-db-to-4.4 #32

Workflow file for this run

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 }}