Merge pull request #1516 from RainbowMango/pr_verify_swagger_in_ci

Verify swagger docs in CI
This commit is contained in:
karmada-bot 2022-03-22 14:27:42 +08:00 committed by GitHub
commit c41314cfd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -9,8 +9,6 @@ jobs:
name: lint name: lint
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: checkout code - name: checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: install Go - name: install Go
@ -23,8 +21,6 @@ jobs:
run: hack/verify-staticcheck.sh run: hack/verify-staticcheck.sh
- name: import alias - name: import alias
run: hack/verify-import-aliases.sh run: hack/verify-import-aliases.sh
- name: protobuf
run: hack/verify-estimator-protobuf.sh
codegen: codegen:
name: codegen name: codegen
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
@ -42,10 +38,16 @@ jobs:
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.17.x go-version: 1.17.x
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: verify codegen - name: verify codegen
run: hack/verify-codegen.sh run: hack/verify-codegen.sh
- name: verify crdgen - name: verify crdgen
run: hack/verify-crdgen.sh run: hack/verify-crdgen.sh
- name: verify protobuf
run: hack/verify-estimator-protobuf.sh
- name: verify swagger docs
run: hack/verify-swagger-docs.sh
build: build:
name: compile name: compile
needs: codegen # rely on codegen successful completion needs: codegen # rely on codegen successful completion