Skip to content

chore: sonar

chore: sonar #1

Workflow file for this run

name: ci-nodejs-workflow
on:
push:
branches:
- main
- develop
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.x]
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js and run npm test
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm test
sonarcloud:
needs: build
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: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}