Skip to content

Setup build and test workflows (#201) #7

Setup build and test workflows (#201)

Setup build and test workflows (#201) #7

Workflow file for this run

name: Sonar
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
sonar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- name: Unit tests
run: npm test
- name: SonarQube scan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonar.tools.sap