File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 18
18
- name : Checkout
19
19
uses : actions/checkout@v4
20
20
21
- - uses : reviewdog/action-setup@v1
21
+ - name : Go Lint
22
+ uses : reviewdog/action-golangci-lint@v2
22
23
with :
23
- reviewdog_version : latest
24
+ cache : true
25
+
26
+ - name : misspell
27
+ uses : reviewdog/action-misspell@v1
28
+ with :
29
+ github_token : ${{ secrets.github_token }}
30
+ locale : " US"
Original file line number Diff line number Diff line change 34
34
go mod download
35
35
go test -v ./... -coverpkg=./... -short -coverprofile=unit_coverage.out
36
36
37
+ - name : Archive code coverage results
38
+ uses : actions/upload-artifact@v4
39
+ with :
40
+ name : code-coverage-${{github.sha}}
41
+ path : unit_coverage.out
42
+
37
43
code_coverage :
38
44
name : " Code coverage report"
39
45
if : github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
46
52
steps :
47
53
- uses : fgrosse/go-coverage-report@v1.1.1
48
54
with :
49
- coverage-artifact-name : " code-coverage" # can be omitted if you used this default value
55
+ coverage-artifact-name : code-coverage-${{github.sha}} # can be omitted if you used this default value
50
56
coverage-file-name : unit_coverage.out
You can’t perform that action at this time.
0 commit comments