This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
chore: add archiving announcement #10
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
name: Dioscuri Controller Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-suite: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
kindest_node_version: [v1.21.1, v1.22.0] | |
experimental: [false] | |
include: | |
- kindest_node_version: v1.23.0 | |
experimental: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: "0" | |
- name: Set up testing dependencies | |
run: sudo apt-get update && sudo apt-get -y install build-essential && sudo apt-get clean | |
- name: Setup correct Go version | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.16' | |
- name: Install kustomize, kubebuilder, helm | |
run: | | |
#kustomize | |
curl -sLo /tmp/kustomize_v3.5.4_linux_amd64.tar.gz https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.5.4/kustomize_v3.5.4_linux_amd64.tar.gz | |
sudo tar -C /usr/local/bin -xzf /tmp/kustomize_v3.5.4_linux_amd64.tar.gz | |
#kubebuilder | |
curl -sL https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.2/kubebuilder_2.3.2_linux_amd64.tar.gz | tar -xz -C /tmp/ | |
sudo mv /tmp/kubebuilder_2.3.2_linux_amd64 /usr/local/kubebuilder | |
echo "/usr/local/kubebuilder/bin" >> $GITHUB_PATH | |
#helm | |
curl -sL https://get.helm.sh/helm-v3.6.3-linux-amd64.tar.gz | tar -xz -C /tmp/ | |
sudo mv /tmp/linux-amd64/helm /usr/local/bin/helm | |
chmod +x /usr/local/bin/helm | |
- name: Check go, kustomize, kubebuilder, helm, docker-compose, kind versions | |
run: | | |
go version | |
kustomize version | |
helm version | |
kubebuilder version | |
kind version | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
with: | |
node_image: kindest/node:${{ matrix.kindest_node_version }} | |
config: test-resources/kind-cluster.yaml | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
load: true | |
tags: amazeeiolocal/dioscuri:test-tag | |
- name: Run Tests | |
run: | | |
kind load docker-image amazeeiolocal/dioscuri:test-tag --name chart-testing | |
make controller-test |