-
Notifications
You must be signed in to change notification settings - Fork 951
99 lines (85 loc) · 2.74 KB
/
govmomi-govc-tests.yaml
File metadata and controls
99 lines (85 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Tests (govc)
permissions:
contents: read
actions: read
on:
push:
branches: main
pull_request:
branches: main
concurrency:
group: govmomi-govc-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
govc-tests:
name: Run govc Tests
strategy:
fail-fast: false
matrix:
go-version: ["1.25"]
platform: [ubuntu-latest]
cmd: [govc-test]
experimental: [false]
timeout: [20]
runs-on: ${{ matrix.platform }}
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: ${{ matrix.timeout }}
steps:
- name: Check Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Restore Go Cache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Run ${{ matrix.cmd }}
run: |
make ${{ matrix.cmd }}
- name: Debug on Failure
if: ${{ failure() }}
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
govc-docs:
name: Verify Updated Docs
strategy:
matrix:
go-version: ["1.25"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
timeout-minutes: 3
steps:
- name: Check Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Restore Go Cache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Run "make doc"
run: |
make doc
if [ -z "$(git status --porcelain)" ]; then
echo "govc/USAGE.md is up2date..."
else
echo "dirty working directory (diff):"
git --no-pager diff
echo "::error file=govc/USAGE.md::Run make doc to update USAGE.md"
exit 1
fi