-
Notifications
You must be signed in to change notification settings - Fork 78
56 lines (47 loc) · 1.32 KB
/
sonarcloud.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: SonarCloud
on:
push:
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
fetch-depth: 0
submodules: recursive
- name: Setup Node 18
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 18.x
- name: firebase/functions
run: |
set -e
npm ci
npm run test:coverage
working-directory: firebase/functions
- name: Setup Node 20
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 20.x
- name: demo/parser
run: |
set -e
npm ci
npm run test:coverage
working-directory: demo/parser
- name: history
run: |
set -e
npm ci
npm run test:coverage
working-directory: history
- name: transformers/js-dvhcvn
run: |
set -e
npm ci --ignore-scripts
npm run test:coverage
working-directory: transformers/js-dvhcvn
- uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}