-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (34 loc) · 1.18 KB
/
continuous-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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