mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
Test on windows and mac
This commit is contained in:
128
.github/workflows/go.yml
vendored
128
.github/workflows/go.yml
vendored
@@ -1,28 +1,100 @@
|
|||||||
name: Go
|
name: Go
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
lint:
|
||||||
name: Build
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: ^1.13
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- 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: Build
|
- name: Lint
|
||||||
run: ./travis/kyaml-pre-commit.sh
|
run: ./travis/kyaml-pre-commit.sh
|
||||||
env:
|
env:
|
||||||
KUSTOMIZE_DOCKER_E2E: true
|
KUSTOMIZE_DOCKER_E2E: false # don't need to do e2e tests for linting
|
||||||
|
|
||||||
|
test-linux:
|
||||||
|
name: Test Linux
|
||||||
|
runs-on: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ^1.13
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- 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 cmd/config
|
||||||
|
run: go test -cover ./...
|
||||||
|
working-directory: ./cmd/config
|
||||||
|
env:
|
||||||
|
KUSTOMIZE_DOCKER_E2E: true
|
||||||
|
|
||||||
|
test-macos:
|
||||||
|
name: Test MacOS
|
||||||
|
runs-on: [macos-latest]
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ^1.13
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- 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 cmd/config
|
||||||
|
run: go test -cover ./...
|
||||||
|
working-directory: ./cmd/config
|
||||||
|
env:
|
||||||
|
KUSTOMIZE_DOCKER_E2E: false # docker not installed on mac
|
||||||
|
|
||||||
|
test-windows:
|
||||||
|
name: Test Windows
|
||||||
|
runs-on: [windows-latest]
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ^1.13
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- 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 cmd/config
|
||||||
|
run: go test -cover ./...
|
||||||
|
working-directory: ./cmd/config
|
||||||
|
env:
|
||||||
|
KUSTOMIZE_DOCKER_E2E: false # docker on windows not working well yet
|
||||||
|
|||||||
Reference in New Issue
Block a user