-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move upstream tests from travisCI
- Loading branch information
Showing
4 changed files
with
55 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,52 @@ | ||
name: upstream-tests | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
paths: | ||
- '**' | ||
- '!doc/**' | ||
tags-ignore: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make build | ||
unit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make unit | ||
- run: sed -i'' "s:^github.com/$GITHUB_REPOSITORY/::" coverage.out | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: coverage.out | ||
fail_ci_if_error: false | ||
run-e2e-minikube: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
sudo apt-get install conntrack | ||
curl -sLo minikube "$(curl -sL https://api.github.com/repos/kubernetes/minikube/releases/latest | jq -r '[.assets[] | select(.name == "minikube-linux-amd64")] | first | .browser_download_url')" | ||
chmod +x minikube | ||
sudo mv minikube /bin/ | ||
minikube config set vm-driver none | ||
sudo minikube start | ||
sudo chown -R "$USER" "$HOME/.kube" "$HOME/.minikube" | ||
KUBECONFIG="$HOME/.kube/config" make e2e | ||
run-e2e-kind: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')" | ||
chmod +x kind | ||
sudo mv kind /bin/ | ||
kind create cluster | ||
kind export kubeconfig | ||
sudo chown -R "$USER" "$HOME/.kube" | ||
KUBECONFIG="$HOME/.kube/config" make e2e |
This file was deleted.
Oops, something went wrong.
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