Skip to content

Update sonar-project.properties #7

Update sonar-project.properties

Update sonar-project.properties #7

Workflow file for this run

name: SonarQube scan
# place this file in <root folder>/.github/workflows
on:
push:
branches:
- main
- develop
- 'release/**'
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarqube:
runs-on: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate coverage.out and covreport.xml file
run: go test -v -coverprofile="coverage.out" ./...
- name: Copy file
run: cp coverage.out test/unittest/coverage.out
- name: cat the file
run: cat test/unittest/coverage.out
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}