Skip to content

test sonar

test sonar #14

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: Restore cache
uses: actions/cache@v4
with:
path: |
.yarn/cache
**/node_modules
key: v5-${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: v5-${{ runner.os }}-yarn-
- name: Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}