fix: pkg/new-ui/v1beta1/frontend/package.json & pkg/new-ui/v1beta1/fr… #421
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: | |
- push | |
- pull_request | |
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@v2 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.10 | |
# Verify that go.mod and go.sum is synchronized | |
- name: Check Go modules | |
run: | | |
go mod tidy && | |
git add go.* && | |
git diff --cached --exit-code || (echo 'Please run "go mod tidy" to sync Go modules' && exit 1) | |
- name: Run Generate And Go Format Test | |
run: | | |
go mod download && | |
make check && | |
git add pkg/apis hack/gen-python-sdk && | |
git diff --cached --exit-code || (echo 'Please run "make check" to generate codes and to format Go codes' && exit 1) | |
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@v2 | |
with: | |
path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.10 | |
- 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.21.4", "1.22.1", "1.23.5"] |