Skip to content

Commit

Permalink
migrated from Travis CI to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
predatorray committed Nov 6, 2022
1 parent d8d9b37 commit c26b324
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 33 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
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
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit c26b324

Please sign in to comment.