Added sonarcloud job

This commit is contained in:
Profitroll 2024-10-29 17:37:16 +02:00
parent b9ae1c2149
commit 377ba928ba

View File

@ -10,6 +10,7 @@ on:
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
strategy:
@ -36,3 +37,15 @@ jobs:
with:
name: Artifacts
path: dist/*
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}