Skip to content

Updated ontimize-web-ngx@15.0.2 #136

Updated ontimize-web-ngx@15.0.2

Updated ontimize-web-ngx@15.0.2 #136

Workflow file for this run

name: Sonar
on:
push:
branches:
- main.15.x
- 15.x.x
- hotfix/15.*
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: 'Cache node modules'
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node 18.x
uses: actions/setup-node@v3
with:
node-version: 18.10.0
- name: npm install and npm run test-ci
run: |
npm i
npm run test-ci
- name: coverage .lcov workaround
run: |
sed -i 's+/home/runner/work/ontimize-web-ngx-playground/ontimize-web-ngx-playground+/github/workspace+g' coverage/ontimize-web-ngx-playground/lcov.info
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}