Skip to content

Commit

Permalink
#56 #57 Update sonar cloud and codecov job for viot (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanvumaihuynh authored Oct 29, 2024
1 parent 54d0810 commit a445b2e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/viot-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,30 @@ jobs:
working-directory: ./viot
run: bash ./scripts/test.sh --cov-report=xml

sonar:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
projectBaseDir: viot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

codecov:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions viot/sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sonar.projectKey=tuanvumaihuynh_viot
sonar.organization=tuanvumaihuynh
sonar.python.version=3.11
sonar.sourceEncoding=UTF-8
sonar.sources=app

0 comments on commit a445b2e

Please sign in to comment.