diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3b1e7c4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install minikube + uses: medyagh/setup-minikube@master + with: + driver: none + - 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c284631..0000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: bash -sudo: required - -env: - global: - - CHANGE_MINIKUBE_NONE_USER=true - - MINIKUBE_WANTUPDATENOTIFICATION=false - - MINIKUBE_WANTREPORTERRORPROMPT=false - - MINIKUBE_HOME=$HOME - - CHANGE_MINIKUBE_NONE_USER=true - - KUBECONFIG=$HOME/.kube/config - -before_script: - - 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/ - - mkdir -p $HOME/.kube $HOME/.minikube - - touch $KUBECONFIG - - sudo minikube start --vm-driver=none --kubernetes-version=v1.16.0 - - "sudo chown -R travis: /home/travis/.minikube/" - -script: - - export PATH="$(pwd)/bin:$PATH" - - make - -deploy: - provider: releases - api_key: $GITHUB_TOKEN - file_glob: true - file: output/* - skip_cleanup: true - draft: true - on: - tags: true