Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup CI config #355

Merged
merged 1 commit into from Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Expand Up @@ -13,24 +13,16 @@ jobs:
strategy:
matrix:
go: [ '1.19', '1.18', '1.x' ]
gostable: [true]
include:
- go: '1.x'
gostable: false
steps:
- uses: actions/checkout@v2
with:
path: src/k8s.io/kube-openapi/
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: "${{ matrix.go }}"
stable: ${{ matrix.gostable }}"

- name: Build
run: |
cd ${GITHUB_WORKSPACE}/src/k8s.io/kube-openapi/
go mod tidy && git diff --exit-code
go build ./cmd/... ./pkg/...
- name: Format
Expand All @@ -39,13 +31,12 @@ jobs:
if [[ -n "${diff}" ]]; then echo "${diff}"; exit 1; fi
- name: Test
run: |
cd ${GITHUB_WORKSPACE}/src/k8s.io/kube-openapi/
GOPATH=${GITHUB_WORKSPACE} go test ./cmd/... ./pkg/...
go test ./cmd/... ./pkg/...
- name: Run integration tests
run: |
cd ${GITHUB_WORKSPACE}/src/k8s.io/kube-openapi/test/integration
cd test/integration
go mod tidy && git diff --exit-code
GOPATH=${GITHUB_WORKSPACE} go test ./...
go test ./...
required:
# The name of the ci jobs above change based on the golang version.
# Use this as a stable required job that depends on the above jobs.
Expand Down