Skip to content

[15.x.x] [Playground] Fixed o-phone examples (#300) #169

[15.x.x] [Playground] Fixed o-phone examples (#300)

[15.x.x] [Playground] Fixed o-phone examples (#300) #169

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@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: 'Cache node modules'
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node 18.x
uses: actions/setup-node@v4
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 }}