Sonarcloud - Unit test coverage (#2155)

* feat: attempt to scan

* feat: attempt with sonar file

* fix: another attempt

* fix: clean up

* Update sonar-project.properties

* fix: pulling history

* tes

* feat: testing file

* Delete TestFile2.ts
This commit is contained in:
Guilherme Ribeiro
2023-05-12 10:02:38 -03:00
committed by GitHub
parent d5c212cf9d
commit d00cd8501f
2 changed files with 21 additions and 1 deletions

View File

@@ -13,12 +13,26 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile - run: yarn --frozen-lockfile
- run: yarn build - run: yarn build
- run: yarn lint - run: yarn lint
- run: yarn type-check - run: yarn type-check
- run: yarn test
- run: yarn test:coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

6
sonar-project.properties Normal file
View File

@@ -0,0 +1,6 @@
sonar.host.url=https://sonarcloud.io
sonar.organization=adyen
sonar.projectKey=Adyen_adyen-web
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPaths=./packages/lib/coverage/lcov.info