Skip to content

Commit

Permalink
add env variables for datadog-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Jan 3, 2025
1 parent 275021c commit 277d111
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ permissions:
contents: read

env:
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_AUTHOR_NAME: "ci.datadog-api-spec"
GIT_AUTHOR_EMAIL: '[email protected]'
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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 277d111

Please sign in to comment.