Skip to content

sonarqube

sonarqube #13

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- main
- sonarqube-integration
# pull_request:
# types: [opened, synchronize, reopened]
jobs:
build:
name: SonarCloud Scan
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: 16.17
- name: Enable corepack
run: corepack enable yarn
- name: Install dependencies
run: yarn install --immutable
- name: Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}