Skip to content

ci:(deps): bump softprops/action-gh-release from 2.6.1 to 3.0.0 #17

ci:(deps): bump softprops/action-gh-release from 2.6.1 to 3.0.0

ci:(deps): bump softprops/action-gh-release from 2.6.1 to 3.0.0 #17

Workflow file for this run

name: Sonar Scan
on:
push:
branches:
- main
- develop
- master
- 'release/**'
pull_request:
permissions:
contents: read
jobs:
sonar:
name: Sonar Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26.2'
- name: Install dependencies
run: go mod download
- name: Run tests with coverage
run: |
go test -v ./... \
-coverprofile=coverage.out \
-covermode=atomic \
-coverpkg=./...
- name: Show coverage summary
run: |
go tool cover -func=coverage.out
- name: Sonar Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_ORGANIZATION: ${{ secrets.SONAR_ORGANIZATION }}
# - name: Sonar Quality Gate
# uses: SonarSource/sonarqube-quality-gate-action@v1.1.0
# timeout-minutes: 10
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}