mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
Test other modules on all platforms
This commit is contained in:
48
.github/workflows/go.yml
vendored
48
.github/workflows/go.yml
vendored
@@ -44,24 +44,11 @@ jobs:
|
|||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Test kyaml
|
- name: Test all modules
|
||||||
run: go test -cover ./...
|
run: make test-unit-non-plugin
|
||||||
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
|
|
||||||
env:
|
env:
|
||||||
KUSTOMIZE_DOCKER_E2E: true
|
KUSTOMIZE_DOCKER_E2E: true
|
||||||
|
|
||||||
- name: Test kustomize
|
|
||||||
run: go test -cover ./...
|
|
||||||
working-directory: ./kustomize
|
|
||||||
|
|
||||||
test-macos:
|
test-macos:
|
||||||
name: Test MacOS
|
name: Test MacOS
|
||||||
runs-on: [macos-latest]
|
runs-on: [macos-latest]
|
||||||
@@ -76,24 +63,11 @@ jobs:
|
|||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Test kyaml
|
- name: Test all modules
|
||||||
run: go test -cover ./...
|
run: make test-unit-non-plugin
|
||||||
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
|
|
||||||
env:
|
env:
|
||||||
KUSTOMIZE_DOCKER_E2E: false # docker not installed on mac
|
KUSTOMIZE_DOCKER_E2E: false # docker not installed on mac
|
||||||
|
|
||||||
- name: Test kustomize
|
|
||||||
run: go test -cover ./...
|
|
||||||
working-directory: ./kustomize
|
|
||||||
|
|
||||||
test-windows:
|
test-windows:
|
||||||
name: Test Windows
|
name: Test Windows
|
||||||
runs-on: [windows-latest]
|
runs-on: [windows-latest]
|
||||||
@@ -112,18 +86,14 @@ jobs:
|
|||||||
run: go test -cover ./...
|
run: go test -cover ./...
|
||||||
working-directory: ./kyaml
|
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
|
- name: Test cmd/config
|
||||||
run: go test -cover ./...
|
run: go test -cover ./...
|
||||||
working-directory: ./cmd/config
|
working-directory: ./cmd/config
|
||||||
env:
|
env:
|
||||||
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
|
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
|
||||||
|
|
||||||
# TODO: uncomment once Windows tests are passing.
|
# TODO: replace specific modules above with this once Windows tests are passing.
|
||||||
# - name: Test kustomize
|
#- name: Test all modules
|
||||||
# run: go test -cover ./...
|
# run: make test-unit-non-plugin
|
||||||
# working-directory: ./kustomize
|
# env:
|
||||||
|
# KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -122,7 +122,7 @@ lint: $(MYGOBIN)/golangci-lint $(MYGOBIN)/goimports $(builtinplugins)
|
|||||||
./hack/for-each-module.sh "make lint"
|
./hack/for-each-module.sh "make lint"
|
||||||
|
|
||||||
.PHONY: lint-kustomize
|
.PHONY: lint-kustomize
|
||||||
lint-kustomize: $(MYGOBIN)/golangci-lint-kustomize $(builtinplugins)
|
lint-kustomize: $(MYGOBIN)/golangci-lint $(builtinplugins)
|
||||||
cd api; $(MAKE) lint
|
cd api; $(MAKE) lint
|
||||||
cd kustomize; $(MAKE) lint
|
cd kustomize; $(MAKE) lint
|
||||||
cd cmd/pluginator; $(MAKE) lint
|
cd cmd/pluginator; $(MAKE) lint
|
||||||
|
|||||||
@@ -7,16 +7,13 @@ include ../../Makefile-modules.mk
|
|||||||
|
|
||||||
all: test build
|
all: test build
|
||||||
|
|
||||||
statik:
|
|
||||||
go get github.com/rakyll/statik
|
|
||||||
|
|
||||||
test: generate
|
test: generate
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
generate: statik
|
generate: $(MYGOBIN)/statik
|
||||||
( \
|
( \
|
||||||
cd internal/krmfunction; \
|
cd internal/krmfunction; \
|
||||||
statik -src=$(FUNC_WRAPPER_SRC_DIR) -f -p $(FUNC_WRAPPER_DST_DIR) -include=main.go,go.mod.src \
|
$(MYGOBIN)/statik -src=$(FUNC_WRAPPER_SRC_DIR) -f -p $(FUNC_WRAPPER_DST_DIR) -include=main.go,go.mod.src \
|
||||||
)
|
)
|
||||||
|
|
||||||
build: generate
|
build: generate
|
||||||
|
|||||||
Reference in New Issue
Block a user