[DEVEX-1357] adopt sonarcloud scan #29
Workflow file for this run
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
name: Continuous Integration | |
on: [pull_request] | |
env: | |
NODE_VERSION: 20 | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Fetch master branch and checkout/copy over only the docs folder to gh-pages' | |
run: | | |
git fetch origin master --depth 1 | |
git checkout origin/master --no-overlay -- docs | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm test --coverage | |
# sonarcloud scan | |
- name: SonarQube Scan | |
uses: SonarSource/sonarqube-scan-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TEST_COVERAGE }} | |
with: | |
args: > | |
-Dsonar.projectKey=bitvavo_node-bitvavo-api | |
-Dsonar.organization=bitvavo | |
-Dsonar.sources=lib | |
-Dsonar.exclusions=**/node_modules/**,**/dist/**,**/coverage/**,**/e2e/**,**/cypress/**,**/github-trigger/** | |
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info | |
-Dsonar.sourceEncoding=UTF-8 |