Skip to content

Merge pull request #155 from internxt/revert-154-refactor/remove-dead… #7

Merge pull request #155 from internxt/revert-154-refactor/remove-dead…

Merge pull request #155 from internxt/revert-154-refactor/remove-dead… #7

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