File tree Expand file tree Collapse file tree 2 files changed +30
-11
lines changed Expand file tree Collapse file tree 2 files changed +30
-11
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,30 @@ jobs:
11
11
sonarcloud :
12
12
name : Sonar Cloud Static Scans
13
13
runs-on : ubuntu-latest
14
+ env :
15
+ go_version : ' 1.23'
16
+
14
17
if : github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
15
18
16
19
steps :
17
- - name : Fetch Code Coverage Report
18
- uses : actions/download-artifact @v4
20
+ - name : Checkout Provider
21
+ uses : actions/checkout @v4
19
22
with :
20
- name : coverage-report
21
- path : .
23
+ fetch-depth : 0
24
+
25
+ - name : Setup Go ${{ env.go_version }}
26
+ uses : actions/setup-go@v5
27
+ with :
28
+ go-version : ${{ env.go_version }}
29
+
30
+ - name : Run unit tests with coverage
31
+ run : make testcov
32
+
33
+ # - name: Fetch Code Coverage Report
34
+ # uses: actions/download-artifact@v4
35
+ # with:
36
+ # name: coverage-report
37
+ # path: .
22
38
23
39
- name : Sonar Cloud Scan
24
40
uses :
SonarSource/[email protected]
Original file line number Diff line number Diff line change @@ -30,11 +30,14 @@ jobs:
30
30
- name : Build the Provider
31
31
run : go build -v ./...
32
32
33
- - name : Run unit tests with coverage
34
- run : make testcov
33
+ - name : Run Provider Unit Tests
34
+ run : make test
35
35
36
- - name : Upload code coverage report from unit tests
37
- uses : actions/upload-artifact@v4
38
- with :
39
- name : coverage-report
40
- path : unit-testing.cov
36
+ # - name: Run unit tests with coverage
37
+ # run: make testcov
38
+
39
+ # - name: Upload code coverage report from unit tests
40
+ # uses: actions/upload-artifact@v4
41
+ # with:
42
+ # name: coverage-report
43
+ # path: unit-testing.cov
You can’t perform that action at this time.
0 commit comments