Skip to content

Commit

Permalink
Merge pull request #44 from objectionary/automated-testing
Browse files Browse the repository at this point in the history
#27 Code coverage on sonarcloud
  • Loading branch information
EduardoFernandes1410 authored Dec 4, 2022
2 parents 459b5ff + 8460c84 commit c042c94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:
run: |
npm i
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: ESLinter
run: |
npm run lint
Expand All @@ -57,6 +51,12 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

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

- name: Download and Build Grammar
run: |
Expand Down
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ sonar.organization=eolangvscode

sonar.exclusions=client/out/**,server/out/**,server/src/parser/**,docs/**

sonar.javascript.lcov.reportPaths=coverage/lcov.info

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=eo-vscode
#sonar.projectVersion=1.0
Expand Down

0 comments on commit c042c94

Please sign in to comment.