Test other modules on all platforms

This commit is contained in:
Katrina Verey
2022-04-04 19:39:01 -04:00
parent ea193328e3
commit df80b29694
3 changed files with 12 additions and 45 deletions

View File

@@ -44,24 +44,11 @@ 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
- name: Test kustomize
run: go test -cover ./...
working-directory: ./kustomize
test-macos:
name: Test MacOS
runs-on: [macos-latest]
@@ -76,24 +63,11 @@ 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
- name: Test kustomize
run: go test -cover ./...
working-directory: ./kustomize
test-windows:
name: Test Windows
runs-on: [windows-latest]
@@ -112,18 +86,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: uncomment once Windows tests are passing.
# - name: Test kustomize
# run: go test -cover ./...
# working-directory: ./kustomize
# TODO: 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