github.com/oam-dev/kubevela@v1.9.11/.github/workflows/core-api-test.yml (about) 1 name: core-api-test 2 on: 3 pull_request: 4 paths: 5 - 'apis/**' 6 - 'pkg/oam/**' 7 - "hack/apis/**" 8 branches: 9 - master 10 - release-* 11 12 permissions: 13 contents: read 14 15 jobs: 16 core-api-test: 17 runs-on: ubuntu-22.04 18 steps: 19 - name: Set up Go 1.19 20 uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 21 env: 22 GO_VERSION: '1.19' 23 with: 24 go-version: ${{ env.GO_VERSION }} 25 id: go 26 27 - name: Check out code into the Go module directory 28 uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 29 30 - name: Get the version 31 id: get_version 32 run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT 33 34 - name: Test build kubevela-core-api 35 env: 36 VERSION: ${{ steps.get_version.outputs.VERSION }} 37 COMMIT_ID: ${{ github.sha }} 38 run: | 39 bash ./hack/apis/clientgen.sh 40 bash ./hack/apis/sync.sh test