From a8a594f9ee7d36638303fcae398bce1e5ce296a9 Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 11:47:32 -0700 Subject: [PATCH 1/8] Github action to run Datadog Tests --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..3cb55f207 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Datadog Synthetic Tests + uses: ugurtemiz/datadog-synthetic-action@v1.1 + with: + # api-url: # optional, default is https://api.datadoghq.com + datadog-api-key: ${{secrets.DATADOG_API_KEY}} + datadog-application-key: ${{secrets.DATADOG_APPLICATION_KEY}} + # public-ids: # optional, default is '' + tags: CI # optional, default is '' + # Define whether you want to start (live) or pause (paused) a Synthetic test. Allowed enum values: live,paused + new-status: live From 618bdfe54bf60619b30c2325a11be32e976dbf4c Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 11:03:46 -0700 Subject: [PATCH 2/8] bump --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fe8b78b67..f211ed22e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Python: Getting Started +# Python: Getting Started 2 A barebones Django app, which can easily be deployed to Heroku. From a3c4699bb60e71091d5a573ecba6c4aaa1e415ab Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 11:58:15 -0700 Subject: [PATCH 3/8] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3cb55f207..3fcb4c19e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,6 @@ jobs: datadog-api-key: ${{secrets.DATADOG_API_KEY}} datadog-application-key: ${{secrets.DATADOG_APPLICATION_KEY}} # public-ids: # optional, default is '' - tags: CI # optional, default is '' + tags: "CI" # optional, default is '' # Define whether you want to start (live) or pause (paused) a Synthetic test. Allowed enum values: live,paused - new-status: live + new-status: "live" From a3b0f1218926a8e9fde35303c1735c4b64e7caac Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 12:46:07 -0700 Subject: [PATCH 4/8] Update main.yml --- .github/workflows/main.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3fcb4c19e..984715517 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,13 +25,12 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Datadog Synthetic Tests - uses: ugurtemiz/datadog-synthetic-action@v1.1 - with: - # api-url: # optional, default is https://api.datadoghq.com - datadog-api-key: ${{secrets.DATADOG_API_KEY}} - datadog-application-key: ${{secrets.DATADOG_APPLICATION_KEY}} - # public-ids: # optional, default is '' - tags: "CI" # optional, default is '' - # Define whether you want to start (live) or pause (paused) a Synthetic test. Allowed enum values: live,paused - new-status: "live" + - name: Setup Datadog Synthetic Tests + run: | + export DATADOG_API_KEY=${{secrets.DATADOG_API_KEY}} + export DATADOG_APP_KEY=${{secrets.DATADOG_APPLICATION_KEY}} + yarn add @datadog/datadog-ci + + - name: Run Datadog Synthetic Tests + run: | + yarn datadog-ci synthetics run-tests --search 'tag:CI' From 3465e75fd85abbdf5a3eb86ca85b571d52f9aa08 Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 12:47:45 -0700 Subject: [PATCH 5/8] Update main.yml --- .github/workflows/main.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 984715517..ddf190cb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,12 +25,11 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Setup Datadog Synthetic Tests - run: | - export DATADOG_API_KEY=${{secrets.DATADOG_API_KEY}} - export DATADOG_APP_KEY=${{secrets.DATADOG_APPLICATION_KEY}} - yarn add @datadog/datadog-ci + - name: Install Datadog Test Runner + run: yarn add @datadog/datadog-ci - name: Run Datadog Synthetic Tests run: | + export DATADOG_API_KEY=${{secrets.DATADOG_API_KEY}} + export DATADOG_APP_KEY=${{secrets.DATADOG_APPLICATION_KEY}} yarn datadog-ci synthetics run-tests --search 'tag:CI' From c1f087cd7a6e622fb7334f8202f8c7a40cd3f9a5 Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 14:54:04 -0700 Subject: [PATCH 6/8] Bump --- hello/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello/templates/index.html b/hello/templates/index.html index 55951ccc2..a00dd8563 100644 --- a/hello/templates/index.html +++ b/hello/templates/index.html @@ -8,7 +8,7 @@ -

Getting Started with Python on Heroku

+

Getting Started with Python on Heroku 2

This is a sample Python application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.

Getting Started with Python Source on GitHub From 9ebde2e3759966a46444ba491f28dbf7d4dcc686 Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 14:57:36 -0700 Subject: [PATCH 7/8] Bump --- hello/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello/templates/index.html b/hello/templates/index.html index a00dd8563..88d8f3fd8 100644 --- a/hello/templates/index.html +++ b/hello/templates/index.html @@ -8,7 +8,7 @@ -

Getting Started with Python on Heroku 2

+

Getting Started with Python on Heroku 3

This is a sample Python application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.

Getting Started with Python Source on GitHub From d8cbd3a8b1f15ac23913b3e6d17d162869929bea Mon Sep 17 00:00:00 2001 From: Cameron Guthrie Date: Tue, 20 Jul 2021 15:20:10 -0700 Subject: [PATCH 8/8] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddf190cb1..bfa04e33b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: run: yarn add @datadog/datadog-ci - name: Run Datadog Synthetic Tests - run: | - export DATADOG_API_KEY=${{secrets.DATADOG_API_KEY}} - export DATADOG_APP_KEY=${{secrets.DATADOG_APPLICATION_KEY}} - yarn datadog-ci synthetics run-tests --search 'tag:CI' + env: + DATADOG_API_KEY: ${{secrets.DATADOG_API_KEY}} + DATADOG_APP_KEY: ${{secrets.DATADOG_APPLICATION_KEY}} + run: yarn datadog-ci synthetics run-tests --search 'tag:CI'