-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated from Travis CI to Github Actions
- Loading branch information
1 parent
d8d9b37
commit c26b324
Showing
2 changed files
with
47 additions
and
33 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,47 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
MINIKUBE_HOME: "/home/runner" | ||
KUBECONFIG: "/home/runner/.kube/config" | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Kubernetes | ||
env: | ||
CHANGE_MINIKUBE_NONE_USER: 'true' | ||
MINIKUBE_WANTUPDATENOTIFICATION: 'false' | ||
MINIKUBE_WANTREPORTERRORPROMPT: 'false' | ||
run: | | ||
set -ex | ||
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ | ||
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.4.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | ||
sudo minikube start --vm-driver=none --kubernetes-version=v1.16.0 | ||
# sudo mv /root/.kube /root/.minikube $HOME | ||
# sudo chown -R $USER $HOME/.kube $HOME/.minikube | ||
cat "${KUBECONFIG}" | ||
kubectl get nodes | ||
- name: Install Bats | ||
run: | | ||
set -ex | ||
git clone https://github.com/bats-core/bats-core.git | ||
cd bats-core | ||
sudo ./install.sh /usr/local | ||
- name: Make | ||
run: | | ||
set -ex | ||
export PATH="$(pwd)/bin:$PATH" | ||
make |
This file was deleted.
Oops, something went wrong.