Skip to content

chore: automated PR to update ReleaseNotes for 202411.12.0 VHD #15480

chore: automated PR to update ReleaseNotes for 202411.12.0 VHD

chore: automated PR to update ReleaseNotes for 202411.12.0 VHD #15480

name: Validate Components
on: pull_request
jobs:
cue:
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: '1.22'
- 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@latest
popd
- name: Validate components.json conforms to cue schema
run: |
GOPATH="$(go env | grep GOPATH | cut -d= -f2 | tr -d '"')"
export PATH="$PATH:$GOPATH/bin"
cue vet -c ./schemas/components.cue ./parts/linux/cloud-init/artifacts/components.json
cue eval ./schemas/components.cue ./parts/linux/cloud-init/artifacts/components.json