@@ -41,63 +41,65 @@ jobs:
4141 DD_HOSTNAME : " none"
4242 DD_INSIDE_CI : " true"
4343 steps :
44- - name : Get GitHub App token
45- if : github.event_name == 'pull_request'
46- id : get_token
47- uses : actions/create-github-app-token@v1
48- with :
49- app-id : ${{ secrets.PIPELINE_GITHUB_APP_ID }}
50- private-key : ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
51- repositories : datadog-api-spec
52- - name : Checkout code
53- uses : actions/checkout@v3
54- - name : Post pending status check
55- if : github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
56- uses : DataDog/github-actions/post-status-check@v2
57- with :
58- github-token : ${{ steps.get_token.outputs.token }}
59- repo : datadog-api-spec
60- status : pending
61- context : integration
62- - name : Install system zstd
63- run : |
64- sudo apt-get -y install zstd
65- echo "ZSTANDARD_LIBRARY=$(find /usr/lib -iname libzstd.so.1)" >> $GITHUB_ENV
66- - name : Set up Ruby 3.2
67- uses : ruby/setup-ruby@v1
68- with :
69- ruby-version : " 3.2"
70- bundler-cache : true
71- cache-version : ${{ secrets.CACHE_VERSION }}
72- - name : Install deps
73- run : bundle install
74- - name : Run integration tests
75- run : ./run-tests.sh
76- shell : bash
77- env :
78- CI : " true"
79- DD_AGENT_HOST : localhost
80- DD_ENV : prod
81- DD_SERVICE : datadog-api-client-ruby
82- DD_TAGS : " team:integrations-tools-and-libraries"
83- DD_TEST_CLIENT_API_KEY : ${{ secrets.DD_CLIENT_API_KEY }}
84- DD_TEST_CLIENT_APP_KEY : ${{ secrets.DD_CLIENT_APP_KEY }}
85- DD_TRACE_ANALYTICS_ENABLED : " true"
86- RECORD : " none"
87- SLEEP_AFTER_REQUEST : " ${{ vars.SLEEP_AFTER_REQUEST }}"
88- - name : Post failure status check
89- if : failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
90- uses : DataDog/github-actions/post-status-check@v2
91- with :
92- github-token : ${{ steps.get_token.outputs.token }}
93- repo : datadog-api-spec
94- status : failure
95- context : integration
96- - name : Post success status check
97- if : " !failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')"
98- uses : DataDog/github-actions/post-status-check@v2
99- with :
100- github-token : ${{ steps.get_token.outputs.token }}
101- repo : datadog-api-spec
102- status : success
103- context : integration
44+ - name : Show Agent status
45+ run : docker exec $(docker ps --format "{{.ID}}") agent status
46+ # - name: Get GitHub App token
47+ # if: github.event_name == 'pull_request'
48+ # id: get_token
49+ # uses: actions/create-github-app-token@v1
50+ # with:
51+ # app-id: ${{ secrets.PIPELINE_GITHUB_APP_ID }}
52+ # private-key: ${{ secrets.PIPELINE_GITHUB_APP_PRIVATE_KEY }}
53+ # repositories: datadog-api-spec
54+ # - name: Checkout code
55+ # uses: actions/checkout@v3
56+ # - name: Post pending status check
57+ # if: github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
58+ # uses: DataDog/github-actions/post-status-check@v2
59+ # with:
60+ # github-token: ${{ steps.get_token.outputs.token }}
61+ # repo: datadog-api-spec
62+ # status: pending
63+ # context: integration
64+ # - name: Install system zstd
65+ # run: |
66+ # sudo apt-get -y install zstd
67+ # echo "ZSTANDARD_LIBRARY=$(find /usr/lib -iname libzstd.so.1)" >> $GITHUB_ENV
68+ # - name: Set up Ruby 3.2
69+ # uses: ruby/setup-ruby@v1
70+ # with:
71+ # ruby-version: "3.2"
72+ # bundler-cache: true
73+ # cache-version: ${{ secrets.CACHE_VERSION }}
74+ # - name: Install deps
75+ # run: bundle install
76+ # - name: Run integration tests
77+ # run: ./run-tests.sh
78+ # shell: bash
79+ # env:
80+ # CI: "true"
81+ # DD_AGENT_HOST: localhost
82+ # DD_ENV: prod
83+ # DD_SERVICE: datadog-api-client-ruby
84+ # DD_TAGS: "team:integrations-tools-and-libraries"
85+ # DD_TEST_CLIENT_API_KEY: ${{ secrets.DD_CLIENT_API_KEY }}
86+ # DD_TEST_CLIENT_APP_KEY: ${{ secrets.DD_CLIENT_APP_KEY }}
87+ # DD_TRACE_ANALYTICS_ENABLED: "true"
88+ # RECORD: "none"
89+ # SLEEP_AFTER_REQUEST: "${{ vars.SLEEP_AFTER_REQUEST }}"
90+ # - name: Post failure status check
91+ # if: failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')
92+ # uses: DataDog/github-actions/post-status-check@v2
93+ # with:
94+ # github-token: ${{ steps.get_token.outputs.token }}
95+ # repo: datadog-api-spec
96+ # status: failure
97+ # context: integration
98+ # - name: Post success status check
99+ # if: "!failure() && github.event_name == 'pull_request' && contains(github.event.pull_request.head.ref, 'datadog-api-spec/generated/')"
100+ # uses: DataDog/github-actions/post-status-check@v2
101+ # with:
102+ # github-token: ${{ steps.get_token.outputs.token }}
103+ # repo: datadog-api-spec
104+ # status: success
105+ # context: integration
0 commit comments