1
- # Copyright (c) 2021 VMware, Inc. All Rights Reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
1
+ name : Tests (govc)
14
2
15
- name : govc Tests
3
+ permissions :
4
+ contents : read
5
+ actions : read
16
6
17
7
on :
18
8
push :
19
- branches : ["main"]
20
-
9
+ branches : main
21
10
pull_request :
22
- branches : [" main"]
11
+ branches : main
23
12
24
13
concurrency :
25
14
group : govmomi-govc-tests-${{ github.head_ref || github.run_id }}
31
20
strategy :
32
21
fail-fast : false
33
22
matrix :
34
- go-version : ["1.22 "]
35
- platform : [" ubuntu-latest" ]
36
- cmd : [" govc-test" ]
23
+ go-version : ["1.23 "]
24
+ platform : [ubuntu-latest]
25
+ cmd : [govc-test]
37
26
experimental : [false]
38
27
timeout : [20]
39
28
@@ -42,17 +31,17 @@ jobs:
42
31
timeout-minutes : ${{ matrix.timeout }}
43
32
44
33
steps :
45
- - name : Check out code
46
- uses : actions/checkout@v4
34
+ - name : Check Repository
35
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
36
48
- - name : Set up Go ${{ matrix.go-version }}
49
- uses : actions/setup-go@v5
37
+ - name : Setup Go ${{ matrix.go-version }}
38
+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
50
39
with :
51
40
go-version : ${{ matrix.go-version }}
52
41
id : go
53
42
54
- - name : Restore Go cache
55
- uses : actions/cache@v4
43
+ - name : Restore Go Cache
44
+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
56
45
with :
57
46
path : |
58
47
~/.cache/go-build
@@ -65,30 +54,30 @@ jobs:
65
54
run : |
66
55
make ${{ matrix.cmd }}
67
56
68
- - name : Debug with tmate on failure
57
+ - name : Debug on Failure
69
58
if : ${{ failure() }}
70
- uses : mxschmitt/action-tmate@v3
59
+ uses : mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48 # v3.19
71
60
72
61
govc-docs :
73
- name : Verify govc docs are up2date
62
+ name : Verify Updated Docs
74
63
strategy :
75
64
matrix :
76
65
go-version : ["1.22"]
77
- platform : [" ubuntu-latest" ]
66
+ platform : [ubuntu-latest]
78
67
runs-on : ${{ matrix.platform }}
79
68
timeout-minutes : 3
80
69
steps :
81
- - name : Check out code
82
- uses : actions/checkout@v4
70
+ - name : Check Repository
71
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83
72
84
- - name : Set up Go ${{ matrix.go-version }}
85
- uses : actions/setup-go@v5
73
+ - name : Setup Go ${{ matrix.go-version }}
74
+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
86
75
with :
87
76
go-version : ${{ matrix.go-version }}
88
77
id : go
89
78
90
- - name : Restore Go cache
91
- uses : actions/cache@v4
79
+ - name : Restore Go Cache
80
+ uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
92
81
with :
93
82
path : |
94
83
~/.cache/go-build
0 commit comments