Skip to content

Content update

Content update #41

Workflow file for this run

name: Sonarcube Scan
on: [push]
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: Calculate test coverage
run: |
go test -coverprofile=coverage.out ./... 2>&1 >/dev/null ||true
cat coverage.out
- 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 }}