-
Notifications
You must be signed in to change notification settings - Fork 276
69 lines (62 loc) · 2.13 KB
/
Copy pathvalidate-components.yml
File metadata and controls
69 lines (62 loc) · 2.13 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
name: Validate Components
on: pull_request
jobs:
cue:
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Install cue
run: |
go version
GOPATH="$(go env | grep GOPATH | cut -d= -f2 | tr -d '"')"
export PATH="$PATH:$GOPATH/bin"
pushd /tmp
GO111MODULE=on go install cuelang.org/go/cmd/cue@v0.15.4
popd
- name: Validate components.json conforms to cue schema
run: |
set -ex
GOPATH="$(go env | grep GOPATH | cut -d= -f2 | tr -d '"')"
export PATH="$PATH:$GOPATH/bin"
cue vet -c ./schemas/components.cue ./parts/common/components.json
- name: Validate windows_settings.json conforms to cue schema
run: |
set -ex
GOPATH="$(go env | grep GOPATH | cut -d= -f2 | tr -d '"')"
export PATH="$PATH:$GOPATH/bin"
cue vet -c ./schemas/windows_settings.cue ./vhdbuilder/packer/windows/windows_settings.json
- name: Validate components-test.json conforms to cue schema
run: |
set -ex
GOPATH="$(go env | grep GOPATH | cut -d= -f2 | tr -d '"')"
export PATH="$PATH:$GOPATH/bin"
cue vet -c ./schemas/components.cue ./vhdbuilder/packer/windows/components-test.json
version-consistency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Run GPU managed components version consistency test
working-directory: ./e2e
run: |
set -ex
go test -v -run ^Test_Version_Consistency_GPU_Managed_Components$ .
dcgm-compatibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: e2e/go.mod
cache-dependency-path: e2e/go.sum
- name: Verify DCGM Exporter package compatibility
working-directory: ./e2e
run: |
set -ex
go test -v -run ^TestDCGMExporterCompatibility$ ./components/