-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions integration tests (#6421)
- Loading branch information
Showing
1 changed file
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
docker_ubuntu: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build binaries | ||
run : | | ||
make minikube-linux-amd64 | ||
make e2e-linux-amd64 | ||
mkdir -p report | ||
- name: run integration test | ||
run: | | ||
echo running docker driver intergration test on ubuntu | ||
./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=docker -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt | ||
- name: install gopogh | ||
run: | | ||
cd /tmp | ||
GO111MODULE="on" go get github.com/medyagh/[email protected] || true | ||
cd - | ||
- name: generate gopogh report | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true | ||
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: docker_on_ubuntu_report | ||
path: report | ||
|
||
docker_macos: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build binaries | ||
run : | | ||
make minikube-darwin-amd64 | ||
make e2e-darwin-amd64 | ||
mkdir -p report | ||
- name: run integration test | ||
run: | | ||
echo running docker driver intergration test on ubuntu | ||
./out/e2e-darwin-amd64 -minikube-start-args=--vm-driver=docker -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-darwin-amd64 2>&1 | tee ./report/testout.txt | ||
- name: install gopogh | ||
run: | | ||
cd /tmp | ||
GO111MODULE="on" go get github.com/medyagh/[email protected] || true | ||
cd - | ||
- name: generate gopogh report | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true | ||
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker macos" -repo github.com/kubernetes/minikube/ || true | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: docker_on_macos_report | ||
path: ./report | ||
|
||
none_ubuntu: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build binaries | ||
run : | | ||
make minikube-linux-amd64 | ||
make e2e-linux-amd64 | ||
mkdir -p report | ||
- name: run integration test | ||
run: | | ||
echo running docker driver intergration test on ubuntu | ||
./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=none -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt | ||
- name: install gopogh | ||
run: | | ||
cd /tmp | ||
GO111MODULE="on" go get github.com/medyagh/[email protected] || true | ||
cd - | ||
- name: generate gopogh report | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true | ||
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: none_on_ubuntu_latest_report | ||
path: report | ||
|
||
none_ubuntu16_04: | ||
runs-on: ubuntu-16.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: build binaries | ||
run : | | ||
make minikube-linux-amd64 | ||
make e2e-linux-amd64 | ||
mkdir -p report | ||
- name: run integration test | ||
run: | | ||
echo running docker driver intergration test on ubuntu | ||
./out/e2e-linux-amd64 -minikube-start-args=--vm-driver=none -expected-default-driver= -test.timeout=70m -test.v -binary=out/minikube-linux-amd64 2>&1 | tee ./report/testout.txt | ||
- name: install gopogh | ||
run: | | ||
cd /tmp | ||
GO111MODULE="on" go get github.com/medyagh/[email protected] || true | ||
cd - | ||
- name: generate gopogh report | ||
run: | | ||
export PATH=${PATH}:`go env GOPATH`/bin | ||
go tool test2json -t < ./report/testout.txt > ./report/testout.json || true | ||
gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/ || true | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: none_on_ubuntu_16_04 | ||
path: report |