Skip to content

Merge branch 'main' into will.wang/OPB-979-OPW-1.3.1 #588

Merge branch 'main' into will.wang/OPB-979-OPW-1.3.1

Merge branch 'main' into will.wang/OPB-979-OPW-1.3.1 #588

Workflow file for this run

name: Go Test
on: [push, pull_request]
env:
GO111MODULE: "on"
PROJECTNAME: "helm-charts"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go
- name: Set up Helm
uses: azure/setup-helm@v3.5
with:
version: v3.10.1
- name: Add Datadog Helm repo
run: helm repo add datadog https://helm.datadoghq.com && helm repo update
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: run Go tests
run: |
helm dependency build ./charts/datadog-operator
make unit-test
integ-tests:
name: integ-tests
runs-on: ubuntu-20.04
strategy:
matrix:
k8s:
- v1.16.15
- v1.18.20
- v1.22.9
- v1.24.2
- v1.25.2
- v1.26.6
- v1.27.3
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create kind ${{ matrix.k8s }} cluster
uses: helm/kind-action@v1.5.0
with:
node_image: kindest/node:${{ matrix.k8s }}
cluster_name: operator-ci-${{ matrix.k8s }}
config: .github/kind_config.yaml
- name: Add Cert Manager Helm repo
run: helm repo add jetstack https://charts.jetstack.io && helm repo update
- name: Add Datadog Helm repo
run: helm repo add datadog https://helm.datadoghq.com && helm repo update
- name: Run integ tests
env:
API_KEY: ${{ secrets.GO_INTEG_TEST_API_KEY }}
APP_KEY: ${{ secrets.GO_INTEG_TEST_APP_KEY }}
CLUSTER_NAME: operator-ci-${{ matrix.k8s }}
K8S_VERSION: ${{ matrix.k8s }}
run: |
kubectl cluster-info
kubectl get nodes
helm dependency build ./charts/datadog-operator
make integration-test