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 3533444 commit 5b883aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/service-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
1 change: 1 addition & 0 deletions service/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sonar.projectKey = ablegram:service
sonar.sourceEncoding = UTF-8
sonar.exclusions = .http/**, .vscode/**, .idea/**, .samples/**, vendor/**
sonar.verbose = true

0 comments on commit 5b883aa

Please sign in to comment.