Skip to content

ci: add sonarcloud

ci: add sonarcloud #2

Workflow file for this run

name: ci-sonarcloud
on:
pull_request:
branches:
- develop
jobs:
run-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
- run: go test -coverprofile=coverage.out
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}