Add workflow to push CI metrics to Datadog (#4336)

This commit is contained in:
Silvano Cerza 2023-03-06 18:02:24 +01:00 committed by GitHub
parent c802305ccf
commit 9253990bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 2 deletions

24
.github/workflows/ci_metrics.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: CI Metrics
on:
workflow_run:
workflows:
- "end-to-end"
- "Linting"
- "Tests"
- "REST API Tests"
types:
- completed
pull_request:
types:
- opened
- closed
jobs:
send:
runs-on: ubuntu-latest
steps:
- uses: int128/datadog-actions-metrics@v1
with:
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
datadog-site: "datadoghq.eu"
collect-job-metrics: true

View File

@ -1,3 +1,4 @@
# If you change this name also do it in ci_metrics.yml
name: end-to-end
on:

View File

@ -1,4 +1,4 @@
# If you change this name also do it in linting.yml
# If you change this name also do it in linting.yml and ci_metrics.yml
name: Linting
on:

View File

@ -1,4 +1,4 @@
# If you change this name also do it in linting-skipper.yml
# If you change this name also do it in linting-skipper.yml and ci_metrics.yml
name: Linting
on:

View File

@ -1,3 +1,4 @@
# If you change this name also do it in ci_metrics.yml
name: REST API Tests
on:

View File

@ -1,3 +1,4 @@
# If you change this name also do it in tests_skipper.yml and ci_metrics.yml
name: Tests
on:

View File

@ -1,3 +1,4 @@
# If you change this name also do it in tests.yml and ci_metrics.yml
name: Tests
on: