mirror of
https://github.com/jlengrand/adyen-web.git
synced 2026-03-10 08:01:22 +00:00
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:
committed by
GitHub
parent
d5c212cf9d
commit
d00cd8501f
16
.github/workflows/unit-tests.yml
vendored
16
.github/workflows/unit-tests.yml
vendored
@@ -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
6
sonar-project.properties
Normal 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
|
||||||
Reference in New Issue
Block a user