-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 934 Bytes
/
stat.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
name: Sonar statistics
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
push:
branches:
- 'main'
jobs:
build:
name: Save sonar statistics
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
- name: Setup npm
run: npm install -g [email protected]
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: export NODE_OPTIONS=--max_old_space_size=8192 && npm run test
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}