Skip to content

Commit b70b7a1

Browse files
committed
Added SonarCloud to pipeline
1 parent 83d26a9 commit b70b7a1

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/lint-and-test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Lint and test
33
on:
44
push:
55

6+
permissions:
7+
pull-requests: read
8+
69
jobs:
710

811
isort:
@@ -52,3 +55,18 @@ jobs:
5255
uses: actions/checkout@v2
5356
- name: Check code errors
5457
run: ./scripts/check_pylint
58+
59+
sonar:
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Analyze with SonarCloud
63+
uses: SonarSource/sonarcloud-github-action
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
67+
with:
68+
args:
69+
-Dsonar.projectKey=sergioteula_python-amazon-paapi
70+
-Dsonar.organization=sergioteula
71+
-Dsonar.sources=amazon_paapi
72+
-Dsonar.tests=tests

0 commit comments

Comments
 (0)