[datadog_app_builder_app] fix bug with publish/unpublish #10210
Workflow file for this run
  
    
      This file contains hidden or 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: Run Integration Tests | |
| permissions: | |
| contents: read | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| types: | |
| - labeled | |
| - unlabeled | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| schedule: | |
| - cron: "0 */12 * * *" | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }}-test-integration | |
| cancel-in-progress: true | |
| env: | |
| TERRAFORM_VERSION: "1.13.1" | |
| jobs: | |
| integration_tests: | |
| runs-on: ubuntu-latest | |
| if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci/integrations')) || github.event_name == 'schedule' | |
| steps: | |
| - name: Start the Datadog Agent locally | |
| uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a | |
| with: | |
| api_key: ${{ secrets.DD_API_KEY }} | |
| - name: Checkout code | |
| uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
| - name: Install Go | |
| uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe | |
| with: | |
| go-version: "1.23" | |
| cache: true | |
| - uses: actions/cache@f4b3439a656ba812b8cb417d2d49f9c810103092 | |
| with: | |
| path: ~/.cache/terraform | |
| key: terraform-${{ env.TERRAFORM_VERSION }} | |
| - name: Install terraform | |
| run: | | |
| mkdir -p ~/.cache/terraform | |
| if [ ! -f ~/.cache/terraform/terraform-${{ env.TERRAFORM_VERSION }} ]; then | |
| wget https://releases.hashicorp.com/terraform/${{ env.TERRAFORM_VERSION }}/terraform_${{ env.TERRAFORM_VERSION }}_linux_amd64.zip -O ~/.cache/terraform/terraform-${{ env.TERRAFORM_VERSION }} | |
| fi | |
| unzip -o -d ~/.cache/terraform ~/.cache/terraform/terraform-${{ env.TERRAFORM_VERSION }} | |
| - name: Run integration tests | |
| run: make testacc | |
| env: | |
| RECORD: "none" | |
| CI: "true" | |
| DD_AGENT_HOST: localhost | |
| DD_PROFILER_API_KEY: ${{ secrets.DD_API_KEY }} | |
| DD_TEST_CLIENT_API_KEY: ${{ secrets.DD_CLIENT_API_KEY }} | |
| DD_TEST_CLIENT_APP_KEY: ${{ secrets.DD_CLIENT_APP_KEY }} | |
| DD_HTTP_CLIENT_RETRY_ENABLED: "true" | |
| DD_ENV: prod | |
| DD_SERVICE: terraform-provider-datadog | |
| DD_VERSION: ${{ github.run_id }} | |
| DD_TAGS: "team:integrations-tools-and-libraries" | |
| TF_ACC_TERRAFORM_PATH: "/home/runner/.cache/terraform/terraform" | |
| TF_ACC_TEMP_DIR: "/tmp" |