Skip to content

Commit

Permalink
Sonar test config
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianrudnik committed Oct 28, 2023
1 parent 2a06585 commit 5ffc84a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/service-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Prey on service code
on:
push:
branches:
- main
paths:
- service/**
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_SERVICE }}
with:
projectBaseDir: service
args: >
-Dsonar.organization=adrianrudnik
-Dsonar.projectKey=ableton.service
6 changes: 3 additions & 3 deletions frontend/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sonar.projectKey = ablegram:frontend
sonar.sourceEncoding = UTF-8
sonar.exclusions = .run/**, .vscode/**, .idea/**, cypress/**
sonar.sourceEncoding = UTF-8
sonar.exclusions = .run/**, .vscode/**, .idea/**, cypress/**
sonar.verbose = true
2 changes: 1 addition & 1 deletion service/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sonar.projectKey = ablegram:service
sonar.sourceEncoding = UTF-8
sonar.exclusions = .http/**, .vscode/**, .idea/**, .samples/**, vendor/**
sonar.verbose = true

0 comments on commit 5ffc84a

Please sign in to comment.