Commit 3646382 1 parent 4b4482d commit 3646382 Copy full SHA for 3646382
File tree 1 file changed +18
-14
lines changed
1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Test and coverage
1
+ name : Test and Code Coverage
2
2
3
- on : [pull_request, push]
3
+ on :
4
+ pull_request :
5
+ paths-ignore :
6
+ - ' README.md'
7
+ push :
8
+ paths-ignore :
9
+ - ' README.md'
4
10
5
11
env :
6
12
BUILD_TAGS : ' akscluster cluster clustergroup credential ekscluster gitrepository iampolicy kustomization namespace custompolicy imagepolicy networkpolicy quotapolicy securitypolicy sourcesecret workspace tanzupackage tanzupackages packagerepository packageinstall clustersecret integration mutationpolicy backupschedule targetlocation dataprotection tanzukubernetescluster clusterclass managementcluster provisioner inspections custompolicytemplate customiamrole permissiontemplate'
13
+
7
14
jobs :
8
15
build :
9
- name : Test and coverage
16
+ name : Test and Code Coverage
10
17
runs-on : ubuntu-latest
11
18
steps :
12
- - uses : actions/checkout@v4
13
-
14
- - name : Set up Go
15
- uses : actions/setup-go@v5
19
+ - name : Checkout
20
+ uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
21
+ - name : Setup Go
22
+ uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
16
23
with :
17
- go-version : 1.19
18
-
24
+ go-version-file : ' go.mod '
25
+ cache : true
19
26
- name : Build
20
27
run : |
21
28
go build -v ./...
22
-
23
29
- name : Unit Test
24
30
run : |
25
31
go test $(go list ./... | grep -v /internal/client | grep -v /internal/models) -coverprofile=coverage.out -covermode=atomic
26
-
27
32
- name : Mock Test
28
33
run : |
29
34
go test $(go list ./... | grep -v /internal/client | grep -v /internal/models) -tags $BUILD_TAGS
30
-
31
- - name : Upload coverage to Codecov
32
- uses : codecov/codecov-action@v5
35
+ - name : Upload to Codecov
36
+ uses : codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
You can’t perform that action at this time.
0 commit comments