Skip to content

Commit

Permalink
Merge pull request #4564 from KnVerey/rework_ci
Browse files Browse the repository at this point in the history
Make CI much more effective
  • Loading branch information
k8s-ci-robot committed Apr 6, 2022
2 parents 49c0ed1 + e96c38e commit 4fc0249
Show file tree
Hide file tree
Showing 163 changed files with 884 additions and 626 deletions.
44 changes: 14 additions & 30 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
fetch-depth: 0

- name: Lint
run: ./hack/kyaml-pre-commit.sh
env:
KUSTOMIZE_DOCKER_E2E: false # don't need to do e2e tests for linting
run: make lint

- name: Verify boilerplate
run: make check-license

test-linux:
name: Test Linux
Expand All @@ -46,17 +47,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test kyaml
run: go test -cover ./...
working-directory: ./kyaml

- name: Test api
run: go test -cover ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222"
working-directory: ./api

- name: Test cmd/config
run: go test -cover ./...
working-directory: ./cmd/config
- name: Test all modules
run: make test-unit-non-plugin
env:
KUSTOMIZE_DOCKER_E2E: true

Expand All @@ -74,17 +66,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Test kyaml
run: go test -cover ./...
working-directory: ./kyaml

- name: Test api
run: go test -cover ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222"
working-directory: ./api

- name: Test cmd/config
run: go test -cover ./...
working-directory: ./cmd/config
- name: Test all modules
run: make test-unit-non-plugin
env:
KUSTOMIZE_DOCKER_E2E: false # docker not installed on mac

Expand All @@ -106,13 +89,14 @@ jobs:
run: go test -cover ./...
working-directory: ./kyaml

# TODO: uncomment once Windows tests are passing.
# - name: Test api
# run: go test -cover ./... -ldflags "-X sigs.k8s.io/kustomize/api/provenance.version=v444.333.222"
# working-directory: ./api

- name: Test cmd/config
run: go test -cover ./...
working-directory: ./cmd/config
env:
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet

# TODO (#4001): replace specific modules above with this once Windows tests are passing.
#- name: Test all modules
# run: make test-unit-non-plugin
# env:
# KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
File renamed without changes.

0 comments on commit 4fc0249

Please sign in to comment.