From 78a21b8b3623fff5beee893853e7c9a619d4cd06 Mon Sep 17 00:00:00 2001 From: ManojNB Date: Thu, 2 May 2024 10:24:20 -0700 Subject: [PATCH] feat(gh-actions): gen2 e2e rest api (#13293) * feat: gen2 e2e rest api * chore: update gen2 test name * chore: reverted branch name --------- Co-authored-by: israx <70438514+israx@users.noreply.github.com> --- .github/integ-config/integ-all.yml | 10 ++++++++++ .github/workflows/callable-e2e-test.yml | 7 +++++++ .github/workflows/callable-e2e-tests.yml | 1 + 3 files changed, 18 insertions(+) diff --git a/.github/integ-config/integ-all.yml b/.github/integ-config/integ-all.yml index 262b59a4b44..5602c4da5e5 100644 --- a/.github/integ-config/integ-all.yml +++ b/.github/integ-config/integ-all.yml @@ -440,6 +440,16 @@ tests: spec: restful browser: *minimal_browser_list + # API Gen2 + - test_name: integ_react_rest_api_gen2 + desc: 'GEN2 Vite + React REST API' + framework: vite + category: api + sample_name: [rest] + spec: restful + backend: gen2 + browser: *minimal_browser_list + # AUTH - test_name: integ_react_javascript_authentication desc: 'React Authentication' diff --git a/.github/workflows/callable-e2e-test.yml b/.github/workflows/callable-e2e-test.yml index 2628eac2704..67b35106458 100644 --- a/.github/workflows/callable-e2e-test.yml +++ b/.github/workflows/callable-e2e-test.yml @@ -22,6 +22,9 @@ on: browser: required: true type: string + backend: + required: true + type: string amplifyjs_dir: required: true type: boolean @@ -73,6 +76,7 @@ jobs: E2E_SAMPLE_NAME: ${{ matrix.sample_name }} E2E_SPEC: ${{ inputs.spec }} E2E_BROWSER: ${{ matrix.browser }} + E2E_BACKEND: ${{ inputs.backend }} E2E_AMPLIFY_JS_DIR: ${{ inputs.amplifyjs_dir == true && env.AMPLIFY_DIR || ''}} E2E_RETRY_COUNT: ${{ inputs.retry_count }} E2E_TEST_NAME: ${{ inputs.test_name }} @@ -85,6 +89,7 @@ jobs: $E2E_SPEC \ $E2E_BROWSER \ dev \ + $E2E_BACKEND \ $E2E_AMPLIFY_JS_DIR" \ -n $E2E_RETRY_COUNT @@ -97,6 +102,7 @@ jobs: E2E_SAMPLE_NAME: ${{ matrix.sample_name }} E2E_SPEC: ${{ inputs.spec }} E2E_BROWSER: ${{ matrix.browser }} + E2E_BACKEND: ${{ inputs.backend }} E2E_AMPLIFY_JS_DIR: ${{ inputs.amplifyjs_dir == true && env.AMPLIFY_DIR || ''}} E2E_RETRY_COUNT: ${{ inputs.retry_count }} E2E_TEST_NAME: ${{ inputs.test_name }} @@ -109,6 +115,7 @@ jobs: $E2E_SPEC \ $E2E_BROWSER \ prod \ + $E2E_BACKEND \ $E2E_AMPLIFY_JS_DIR" \ -n $E2E_RETRY_COUNT - name: Upload artifact diff --git a/.github/workflows/callable-e2e-tests.yml b/.github/workflows/callable-e2e-tests.yml index 93459f49a9e..2bfc5161ec3 100644 --- a/.github/workflows/callable-e2e-tests.yml +++ b/.github/workflows/callable-e2e-tests.yml @@ -40,6 +40,7 @@ jobs: amplifyjs_dir: ${{ matrix.integ-config.amplifyjs_dir || false }} sample_name: ${{ toJSON(matrix.integ-config.sample_name) || '[""]' }} browser: ${{ toJSON(matrix.integ-config.browser) || '[""]' }} + backend: ${{ matrix.integ-config.backend }} timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }} retry_count: ${{ matrix.integ-config.retry_count || 3 }}