Skip to content

Commit

Permalink
add github actions integration tests (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh authored Jan 29, 2020
1 parent d99007f commit 541c67d
Showing 1 changed file with 121 additions and 0 deletions.
121 changes: 121 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 541c67d

Please sign in to comment.