add api key to the github job #4549
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: test-infra-definition | |
on: [push] | |
permissions: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Build | |
run: go build ./... | |
- name: Install orchestrion | |
run: | | |
go install github.com/DataDog/orchestrion@latest | |
orchestrion pin | |
- name: Test | |
run: orchestrion go test -v $(go list ./... | grep -v /integration-tests) # We do not run integration-tests here because they require more tooling (Pulumi, invoke, ..). They will be run in a dedicated job | |
env: | |
DD_CIVISIBILITY_ENABLED: true | |
DD_CIVISIBILITY_AGENTLESS_ENABLED: true | |
DD_ENV: ci | |
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} |