Skip to content

Commit

Permalink
Merge 826883e into a0e3c17
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNBJ authored Mar 14, 2022
2 parents a0e3c17 + 826883e commit d40406f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
steps:
- name: Copy repository
uses: actions/checkout@v2

with:
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
Expand All @@ -23,17 +24,17 @@ jobs:
- name: Run Tests & Coverage
run: npm run test:cov

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

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

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

deploy-hom:
runs-on: ubuntu-latest
needs: ci
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"json",
"ts"
],
"collectCoverage": true,
"rootDir": "./",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
Expand All @@ -84,7 +85,6 @@
"/src/config/configuration.ts",
"/coverage/"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"testResultsProcessor": "jest-sonar-reporter"
}
Expand Down
11 changes: 6 additions & 5 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
sonar.projectKey=fga-eps-mds_2021.2-Cartografia-social-api-users
sonar.organization=fga-eps-mds-1

sonar.sources=src
sonar.sources=./src
sonar.language=js
sonar.sourceEncoding=UTF-8

sonar.tests=test
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=dist/,test/, **/*.module.ts, .eslintrc.js,src/main.ts, /src/config/configuration.ts
sonar.testExecutionReportPaths=test-report.xml
sonar.tests=./test
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar.coverage.exclusions=dist/, **/*.module.ts, .eslintrc.js,src/main.ts, /src/config/configuration.ts
sonar.testExecutionReportPaths=./test-report.xml

0 comments on commit d40406f

Please sign in to comment.