From cd11bb211e8a606077020144a651eceaf8a65b86 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Sun, 17 Nov 2024 21:26:01 -0500 Subject: [PATCH 1/5] initial commit --- .github/workflows/ci-app-e2e-tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/ci-app-e2e-tests.yml diff --git a/.github/workflows/ci-app-e2e-tests.yml b/.github/workflows/ci-app-e2e-tests.yml new file mode 100644 index 0000000..b705bf7 --- /dev/null +++ b/.github/workflows/ci-app-e2e-tests.yml @@ -0,0 +1,15 @@ +name: E2E Tests on Main + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + call-e2e-tests: + name: Trigger E2E Tests on Main + uses: ./.github/workflows/e2e-tests.yml + with: + service_endpoint: "http://app-dev-2093346449.us-east-1.elb.amazonaws.com" + app_name: "app" From 9632c1445554e1ec19353c401605b64b656c7241 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Sun, 17 Nov 2024 21:32:02 -0500 Subject: [PATCH 2/5] add noisy comment for reusable workflows --- .github/workflows/ci-app-e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-app-e2e-tests.yml b/.github/workflows/ci-app-e2e-tests.yml index b705bf7..eabd027 100644 --- a/.github/workflows/ci-app-e2e-tests.yml +++ b/.github/workflows/ci-app-e2e-tests.yml @@ -8,7 +8,7 @@ on: jobs: call-e2e-tests: - name: Trigger E2E Tests on Main + name: " " # GitHub UI is noisy when calling reusable workflows, so use whitespace for name to reduce noise uses: ./.github/workflows/e2e-tests.yml with: service_endpoint: "http://app-dev-2093346449.us-east-1.elb.amazonaws.com" From d0b58a7d1070820a61dfb72243b54c5795571736 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Sun, 17 Nov 2024 21:42:29 -0500 Subject: [PATCH 3/5] update workflow name --- .github/workflows/ci-app-e2e-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-app-e2e-tests.yml b/.github/workflows/ci-app-e2e-tests.yml index eabd027..883ccf0 100644 --- a/.github/workflows/ci-app-e2e-tests.yml +++ b/.github/workflows/ci-app-e2e-tests.yml @@ -1,4 +1,4 @@ -name: E2E Tests on Main +name: CI app E2E tests on main on: push: From 6b98332c11412dcd39cbf88672bab6efebea5fd0 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Sun, 17 Nov 2024 21:56:46 -0500 Subject: [PATCH 4/5] allow inputs --- .github/workflows/ci-app-e2e-tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci-app-e2e-tests.yml b/.github/workflows/ci-app-e2e-tests.yml index 883ccf0..1aa874a 100644 --- a/.github/workflows/ci-app-e2e-tests.yml +++ b/.github/workflows/ci-app-e2e-tests.yml @@ -5,6 +5,15 @@ on: branches: - main workflow_dispatch: + inputs: + service_endpoint: + description: "The service endpoint URL for the E2E tests" + required: true + type: string + app_name: + description: "The application name" + required: true + type: string jobs: call-e2e-tests: From 6e55d00cd238236aed41ae76208643b0d3638b33 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Sun, 17 Nov 2024 22:09:34 -0500 Subject: [PATCH 5/5] update with variables to use inputs --- .github/workflows/ci-app-e2e-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-app-e2e-tests.yml b/.github/workflows/ci-app-e2e-tests.yml index 1aa874a..2ba1cee 100644 --- a/.github/workflows/ci-app-e2e-tests.yml +++ b/.github/workflows/ci-app-e2e-tests.yml @@ -20,5 +20,5 @@ jobs: name: " " # GitHub UI is noisy when calling reusable workflows, so use whitespace for name to reduce noise uses: ./.github/workflows/e2e-tests.yml with: - service_endpoint: "http://app-dev-2093346449.us-east-1.elb.amazonaws.com" - app_name: "app" + service_endpoint: ${{ inputs.service_endpoint || 'http://app-dev-2093346449.us-east-1.elb.amazonaws.com' }} + app_name: ${{ inputs.app_name || 'app' }}