Skip to content

Commit dc6fdd7

Browse files
committed
Added sonar workflow
1 parent 53fefaf commit dc6fdd7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/sonar.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: docker://sonarsource/sonar-scanner-cli:latest
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
19+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.projectKey=bostrot_telegram-support-bot

0 commit comments

Comments
 (0)