From eb92c4d0c822a4a4796588853df1768ef149544b Mon Sep 17 00:00:00 2001 From: MarkCalvert <37602611+MarkCalvert@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:18:01 +1300 Subject: [PATCH] Updated nightwatch workflow to e2e --- .github/workflows/{nightwatch.yml => e2e.yml} | 2 +- .lagoon.yml | 2 +- scripts/trigger-e2e.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{nightwatch.yml => e2e.yml} (98%) diff --git a/.github/workflows/nightwatch.yml b/.github/workflows/e2e.yml similarity index 98% rename from .github/workflows/nightwatch.yml rename to .github/workflows/e2e.yml index 9af2c22ba..98c88870e 100644 --- a/.github/workflows/nightwatch.yml +++ b/.github/workflows/e2e.yml @@ -1,4 +1,4 @@ -name: dpc-sdp/ripple/nightwatch +name: dpc-sdp/ripple/e2e on: workflow_dispatch: inputs: diff --git a/.lagoon.yml b/.lagoon.yml index 144bfdfeb..4f13d045f 100644 --- a/.lagoon.yml +++ b/.lagoon.yml @@ -10,7 +10,7 @@ tasks: fi service: app - run: - name: Trigger Nightwatch E2E Tests CI + name: Trigger E2E Tests CI command: |- . /app/scripts/trigger-e2e.sh service: app diff --git a/scripts/trigger-e2e.sh b/scripts/trigger-e2e.sh index c5db57a66..4c26b02a9 100644 --- a/scripts/trigger-e2e.sh +++ b/scripts/trigger-e2e.sh @@ -47,14 +47,14 @@ fi E2E_ESTUARY_URL="${E2E_ESTUARY_URL:-http://estuary.sdp-services:8080/v1/actions/trigger-e2e}" E2E_ESTUARY_TOKEN_PATH="${E2E_ESTUARY_TOKEN_PATH:-/run/secrets/kubernetes.io/serviceaccount/token}" -# Trigger GitHub Action to run the nightwatch workflow via estuary +# Trigger GitHub Action to run the e2e workflow via estuary curl --location --request POST "$E2E_ESTUARY_URL" \ --header "Authorization: Bearer $(cat $E2E_ESTUARY_TOKEN_PATH)" \ --header "Content-Type: application/json" \ --data-raw '{ "owner": "dpc-sdp", "repo": "ripple", - "workflow": "nightwatch.yml", + "workflow": "e2e.yml", "ref": "'"$BRANCH"'", "be_url": "'"$BE_URL"'", "fe_url": "'"$FE_URL"'",