Skip to content

Commit 66ae8f9

Browse files
committed
Update sonar settings for pull requests
1 parent 3c70d08 commit 66ae8f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-on-commit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ on:
77
push:
88
branches: [ "main" ]
99
pull_request:
10-
branches: [ "main" ]
10+
types: [ opened, synchronize, reopened ]
1111

1212
jobs:
1313

1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820

1921
- name: Set up Go
2022
uses: actions/setup-go@v4
@@ -28,7 +30,7 @@ jobs:
2830
run: go test -v ./... -coverprofile coverage.out
2931

3032
- name: Upload coverage report to SonarCloud
31-
uses: SonarSource/sonarcloud-github-action@v2
33+
uses: SonarSource/sonarqube-scan-action@v5
3234
env:
3335
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3436
with:

0 commit comments

Comments
 (0)