Skip to content

Merge pull request #524 from ditrit/feature/chat_ai #132

Merge pull request #524 from ditrit/feature/chat_ai

Merge pull request #524 from ditrit/feature/chat_ai #132

Workflow file for this run

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 }}