feat: ability to add deployment labels and annotations #696
Workflow file for this run
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: Compile & Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
verify_helm: | |
name: Verify Helm chart | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
helm: [ '3.10.3' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Helm | |
run: | | |
wget https://get.helm.sh/helm-v${{ matrix.helm }}-linux-amd64.tar.gz -O /tmp/helm.tar.gz | |
tar xzf /tmp/helm.tar.gz -C /tmp --strip-components=1 | |
chmod +x /tmp/helm | |
- name: Test template rendering | |
run: /tmp/helm template ./deploy/helm-chart/kubernetes-replicator/. | |
- name: Lint chart | |
run: /tmp/helm lint ./deploy/helm-chart/kubernetes-replicator/ | |
build: | |
name: Compile | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: "1.22" | |
- name: Compile | |
run: go build . | |
- name: Go vet | |
run: go vet ./... | |
tests: | |
name: Run tests suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: "1.22" | |
- uses: actions/checkout@v2 | |
- name: Set up KIND | |
run: | | |
wget -O ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.17.0/kind-linux-amd64 | |
chmod +x ./kind | |
- name: Start cluster | |
run: | | |
./kind create cluster | |
./kind get kubeconfig > ./kind-kubeconfig | |
- name: Run unit tests | |
run: KUBECONFIG=$PWD/kind-kubeconfig go test ./... |