Fix: updates the cue version to 0.9.2 - #6505 #294
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SDK Test | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: {} | |
pull_request: | |
paths: | |
- "vela-templates/definitions/**" | |
- "pkg/definition/gen_sdk/**" | |
branches: | |
- master | |
- release-* | |
permissions: | |
contents: read | |
env: | |
# Common versions | |
GO_VERSION: '1.22' | |
GOLANGCI_VERSION: 'v1.54.2' | |
jobs: | |
sdk-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: Setup Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install Go tools | |
run: | | |
make goimports | |
make golangci | |
- name: Build CLI | |
run: make vela-cli | |
- name: Build SDK | |
run: bin/vela def gen-api -f vela-templates/definitions/internal/ -o ./kubevela-go-sdk --package=github.com/kubevela-contrib/kubevela-go-sdk --init | |
- name: Validate SDK | |
run: | | |
cd kubevela-go-sdk | |
go mod tidy | |
golangci-lint run --timeout 5m -e "exported:" -e "dot-imports" ./... |