generated from HenriqueAmorim20/GEROcuidadoAPITemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from fga-eps-mds/test/sonarcloud
Update package.json
- Loading branch information
Showing
4 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Análise de Código | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- test/sonarcloud | ||
pull_request: | ||
# types: [opened, synchronize, reopened] | ||
branches: | ||
- main | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Instala dependências | ||
run: yarn | ||
|
||
- name: Executa linter | ||
run: yarn lint | ||
|
||
- name: Executa testes e gera cobertura | ||
run: yarn test:all | ||
|
||
- name: Executa SonarCloud Scan | ||
if: ${{ always() }} | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
sonar.projectKey=fga-eps-mds_2023-2-GEROcuidado-APIForum | ||
sonar.organization=fga-eps-mds-1 | ||
|
||
sonar.projectName=2023-2-GEROcuidado-APIForum | ||
|
||
sonar.sources=src | ||
|
||
sonar.host.url=https://sonarcloud.io | ||
sonar.language=ts | ||
sonar.typescript.tsconfigPath=./tsconfig.json | ||
|
||
sonar.sourceEncoding=UTF-8 | ||
sonar.python.version=3 | ||
|
||
sonar.sources=./src | ||
sonar.inclusions=** | ||
sonar.test.inclusions=**/*.spec.tsx,**/*.spec.ts, **/*.test.ts | ||
sonar.exclusions=**/main.ts,**/ormconfig.ts,**/*.module.ts,src/migration/*.ts,src/migrations.ts,**/*.spec.ts | ||
sonar.exclusions=node_modules/**,**/main.ts,**/ormconfig.ts,**/*.module.ts,src/migration/*.ts,src/migrations.ts | ||
|
||
sonar.javascript.lcov.reportPaths=./coverage/unit/lcov.info | ||
sonar.dynamicAnalysis=reuseReports | ||
sonar.core.codeCoveragePlugin=cobertura | ||
|
||
sonar.testExecutionReportPaths=reports/sonar-report.xml |