From 277d1113f76a4edb04a0883eff4d17923a5ac733 Mon Sep 17 00:00:00 2001 From: Andrey Marchenko Date: Fri, 3 Jan 2025 11:38:04 +0100 Subject: [PATCH] add env variables for datadog-ci --- .github/workflows/test.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35c58192227..1c02db14c6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,15 +4,15 @@ permissions: contents: read env: - GIT_AUTHOR_EMAIL: "packages@datadoghq.com" - GIT_AUTHOR_NAME: "ci.datadog-api-spec" + GIT_AUTHOR_EMAIL: 'packages@datadoghq.com' + GIT_AUTHOR_NAME: 'ci.datadog-api-spec' on: pull_request: branches: - master schedule: - - cron: "0 3 * * *" + - cron: '0 3 * * *' concurrency: group: unit-${{ github.head_ref }} @@ -77,13 +77,15 @@ jobs: test: strategy: matrix: - ruby-version: ["2.7", "3.2", "jruby"] + ruby-version: ['2.7', '3.2', 'jruby'] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} if: (github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/')) || github.event_name == 'schedule' env: BUNDLE_WITHOUT: docs DD_PROFILING_NO_EXTENSION: true + DD_CIVISIBILITY_AGENTLESS_ENABLED: true + DD_API_KEY: ${{ secrets.DD_API_KEY }} steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} @@ -107,7 +109,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: "2.7" + ruby-version: '2.7' bundler-cache: true # modify repository variable when there are problems with installing gems cache-version: ${{ vars.CACHE_VERSION }} @@ -129,7 +131,7 @@ jobs: with: app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }} private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }} - repositories: datadog-api-spec + repositories: datadog-api-spec - name: Post status 3heck uses: DataDog/github-actions/post-status-check@v2 with: