Add baseline tests for Agent chart #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: Go Test | |
on: | |
push: | |
paths: | |
- 'test/datadog/**' | |
- 'charts/datadog/**' | |
pull_request: | |
paths: | |
- 'test/datadog/**' | |
- 'charts/datadog/**' | |
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 Promotheus https://prometheus-community.github.io/helm-charts | |
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 update | |
helm dependency build ./charts/datadog | |
make unit-test | |