Skip to content

Update sonarqube.yml #15

Update sonarqube.yml

Update sonarqube.yml #15

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarqube:
name: SonarQube
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run tests with coverage
working-directory: PintudosFront
run: npm run test -- --coverage
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
working-directory: PintudosFront

Check failure on line 23 in .github/workflows/sonarqube.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/sonarqube.yml (Line: 23, Col: 9): Unexpected value 'working-directory'
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectKey: PINTUDOS-ARSW_PintudosFront
organization: pintando
extraProperties: |
sonar.sources=src
sonar.sourceEncoding=UTF-8
sonar.javascript.lcov.reportPaths=coverage/lcov.info