From 377ba928ba0e5e838c029f943d18c02793e5a1db Mon Sep 17 00:00:00 2001 From: Profitroll Date: Tue, 29 Oct 2024 17:37:16 +0200 Subject: [PATCH] Added sonarcloud job --- .gitea/workflows/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 232e3eb..3e4c5c7 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -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 }} \ No newline at end of file