Skip to content

Introduce "sync-by-content" flag, implemented for secrets and configmaps #699

Introduce "sync-by-content" flag, implemented for secrets and configmaps

Introduce "sync-by-content" flag, implemented for secrets and configmaps #699

Workflow file for this run

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 ./...