Skip to content

Commit

Permalink
01 (#6)
Browse files Browse the repository at this point in the history
* feat(chore): add sonar report

* wtf

* fix(smells)

* wtffff

---------

Co-authored-by: Pablo Jacobo Viña Rebolledo <[email protected]>
  • Loading branch information
vinjatovix and pablojvritx committed Oct 1, 2023
1 parent 37ab109 commit 1f23302
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 342 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install dependencies
run: npm install # Adjust for your specific setup

- name: Run tests
run: npm run test # Adjust for your specific test command

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/codeql.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,3 @@ jobs:
- name: Run tests and generate coverage
run: |
npm run test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/sonarpush.yml

This file was deleted.

16 changes: 8 additions & 8 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
cacheDirectory: '.tmp/jestCache',
preset: 'ts-jest',
testEnvironment: 'node',
cacheDirectory: '.tmp/jestCache',
collectCoverage: true,
coverageDirectory: '<rootDir>/coverage',
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
watchPathIgnorePatterns: ["<rootDir>/test-report.json"],
reporters: ["default"],
testResultsProcessor: "jest-sonar-reporter",
coverageReporters: ["text", "html", "lcov", "clover"],
coveragePathIgnorePatterns: ["/node_modules/", "/test/"]
watchPathIgnorePatterns: ['<rootDir>/test-report.json'],
reporters: ['default'],
testResultsProcessor: 'jest-sonar-reporter',
coverageReporters: ['text', 'html', 'lcov', 'clover'],
coveragePathIgnorePatterns: ['/node_modules/', '/test/']
};
Loading

0 comments on commit 1f23302

Please sign in to comment.