Add new structured data type origin for cop and op #228
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: build | |
on: | |
# Run this workflow every time a new commit pushed to upstream/fork repository. | |
# Run workflow on fork repository will help contributors find and resolve issues before sending a PR. | |
push: | |
pull_request: | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: lint | |
run: hack/verify-staticcheck.sh | |
- name: import alias | |
run: hack/verify-import-aliases.sh | |
codegen: | |
name: codegen | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: verify codegen | |
run: hack/verify-codegen.sh | |
- name: verify crdgen | |
run: hack/verify-crdgen.sh | |
fmt: | |
name: gofmt | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: go fmt check | |
run: make fmt-check | |
vet: | |
name: go vet | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: go vet | |
run: make vet | |
test: | |
name: unit test | |
needs: | |
- fmt | |
- vet | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: Run coverage | |
run: ./script/test.sh | |
- name: Codecov | |
uses: codecov/[email protected] | |