Skip to content

Issue #ED-4414 fix: added script for test and sonar analysis #10

Issue #ED-4414 fix: added script for test and sonar analysis

Issue #ED-4414 fix: added script for test and sonar analysis #10

Workflow file for this run

name: Sonar
on:
workflow_run:
workflows: [android]
types:
- completed
jobs:
SonarScanner:

Check failure on line 10 in .github/workflows/ci-cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-cd.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Sonar Scanner
run: sudo npm install -g sonarqube-scanner@3.5.0
- name: Run SonarQube Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
-Dsonar.projectKey=Sunbird-Ed_SunbirdEd-mobile-app \
-Dsonar.organization=sunbird-ed \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_TOKEN