mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-18 23:38:11 +00:00
* Fix: update actions to solve 「 deprecated 」warnings Signed-off-by: basefas <basefas@hotmail.com> * fix: update action & delete unused parameter Signed-off-by: basefas <basefas@hotmail.com> Signed-off-by: basefas <basefas@hotmail.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: core-api-test
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'apis/**'
|
|
- 'pkg/oam/**'
|
|
- "hack/apis/**"
|
|
branches:
|
|
- master
|
|
- release-*
|
|
|
|
jobs:
|
|
core-api-test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Set up Go 1.19
|
|
uses: actions/setup-go@v3
|
|
env:
|
|
GO_VERSION: '1.19'
|
|
GOLANGCI_VERSION: 'v1.49'
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Get the version
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Test build kubevela-core-api
|
|
env:
|
|
VERSION: ${{ steps.get_version.outputs.VERSION }}
|
|
COMMIT_ID: ${{ github.sha }}
|
|
run: |
|
|
bash ./hack/apis/clientgen.sh
|
|
bash ./hack/apis/sync.sh test |