diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c52acbada7b..7be657f9c6b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,8 +2,11 @@ name: CI on: [pull_request] + jobs: docker_ubuntu_16_04: + env: + ELAPSED: time runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v2 @@ -20,17 +23,32 @@ jobs: - name: run integration test run: | mkdir -p /tmp/testhome + + START_TIME=$(date -u +%s) + MINIKUBE_HOME=/tmp/testhome ./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 + + END_TIME=$(date -u +%s) + ELAPSED=$(($END_TIME-$START_TIME)) + min=$((${ELAPSED}/60)) + sec=$((${ELAPSED}%60)) + ELAPSED="${min} min $sec seconds " + + echo ::set-env name=ELAPSED::${ELAPSED} - 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 + STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true + report="Docker_Ubuntu_16_04 : Completed with ${STAT} in ${ELAPSED}" + echo ${report} - uses: actions/upload-artifact@v1 with: name: docker_on_ubuntu_16_04_report path: report docker_ubuntu_18_04: + env: + ELAPSED: time runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -47,17 +65,31 @@ jobs: - name: run integration test run: | mkdir -p /tmp/testhome + START_TIME=$(date -u +%s) + MINIKUBE_HOME=/tmp/testhome ./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 + + END_TIME=$(date -u +%s) + ELAPSED=$(($END_TIME-$START_TIME)) + min=$((${ELAPSED}/60)) + sec=$((${ELAPSED}%60)) + ELAPSED="${min} min $sec seconds" + + echo ::set-env name=ELAPSED::${ELAPSED} - 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 + STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true + report="Docker_Ubuntu_18_04 : Completed with ${STAT} in ${ELAPSED}" + echo ${report} - uses: actions/upload-artifact@v1 with: name: docker_on_ubuntu_18_04_report path: report docker_macos: + env: + ELAPSED: time runs-on: macos-latest steps: - uses: actions/checkout@v2 @@ -79,17 +111,32 @@ jobs: - name: run integration test run: | mkdir -p /tmp/testhome + + START_TIME=$(date -u +%s) + MINIKUBE_HOME=/tmp/testhome ./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 + + END_TIME=$(date -u +%s) + ELAPSED=$(($END_TIME-$START_TIME)) + min=$((${ELAPSED}/60)) + sec=$((${ELAPSED}%60)) + ELAPSED="${min} min $sec seconds" + + echo ::set-env name=ELAPSED::${ELAPSED} - 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 + STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker macos" -repo github.com/kubernetes/minikube/) || true + report="Docker_mac_os : Completed with ${STAT} in ${ELAPSED}" + echo ${report} - uses: actions/upload-artifact@v1 with: name: docker_on_macos_report path: ./report none_ubuntu16_04: + env: + ELAPSED: time runs-on: ubuntu-16.04 steps: - uses: actions/checkout@v2 @@ -106,17 +153,32 @@ jobs: - name: run integration test run: | mkdir -p /tmp/testhome + + START_TIME=$(date -u +%s) + MINIKUBE_HOME=/tmp/testhome sudo -E ./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 + + END_TIME=$(date -u +%s) + ELAPSED=$(($END_TIME-$START_TIME)) + min=$((${ELAPSED}/60)) + sec=$((${ELAPSED}%60)) + ELAPSED="${min} min $sec seconds" + + echo ::set-env name=ELAPSED::${ELAPSED} - 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 + STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true + report="None_Ubuntu_16_04 : Completed with ${STAT} in ${ELAPSED}" + echo ${report} - uses: actions/upload-artifact@v1 with: name: none_on_ubuntu_16_04 path: report none_ubuntu_18_04: + env: + ELAPSED: time runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -132,12 +194,25 @@ jobs: - name: run integration test run: | mkdir -p /tmp/testhome + + START_TIME=$(date -u +%s) + MINIKUBE_HOME=/tmp/testhome sudo -E ./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 + + END_TIME=$(date -u +%s) + ELAPSED=$(($END_TIME-$START_TIME)) + min=$((${ELAPSED}/60)) + sec=$((${ELAPSED}%60)) + ELAPSED="${min} min $sec seconds" + + echo ::set-env name=ELAPSED::${ELAPSED} - 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 + STAT=$(gopogh -in ./report/testout.json -out ./report/testout.html -name "docker ubuntu" -repo github.com/kubernetes/minikube/) || true + report="None_Ubuntu_18_04 : Completed with ${STAT} in ${ELAPSED}" + echo ${report} - uses: actions/upload-artifact@v1 with: name: none_on_ubuntu_latest_report