diff --git a/.github/workflows/go-test-private-action-runner.yaml b/.github/workflows/go-test-private-action-runner.yaml new file mode 100644 index 000000000..a56e0ae59 --- /dev/null +++ b/.github/workflows/go-test-private-action-runner.yaml @@ -0,0 +1,34 @@ +name: Go Test +on: + push: + paths: + - 'test/private-action-runner/**' + - 'charts/private-action-runner/**' + pull_request: + paths: + - 'test/private-action-runner/**' + - 'charts/private-action-runner/**' +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.21 + 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/private-action-runner + make unit-test-operator diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 1b17bd990..8b83c292b 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v1 with: - go-version: 1.20 + go-version: 1.21 id: go - name: Set up Helm uses: azure/setup-helm@v3.5