Consolidate the katib-cert-generator to the katib-controller #1736
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: Go Test | |
on: | |
pull_request: | |
paths-ignore: | |
- "pkg/ui/v1beta1/frontend/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
generatetests: | |
name: Generate And Format Test | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
defaults: | |
run: | |
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.mod | |
- name: Check Go Modules, Generated Go/Python codes, and Format | |
run: make check | |
unittests: | |
name: Unit Test | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: ${{ github.workspace }}/go | |
defaults: | |
run: | |
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.mod | |
- name: Run Go test | |
run: go mod download && make test ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }} | |
- name: Coveralls report | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: coverage.out | |
working-directory: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
strategy: | |
fail-fast: false | |
matrix: | |
# Detail: `setup-envtest list --arch amd64` | |
kubernetes-version: ["1.24.2", "1.25.0", "1.26.1"] |