Skip to content

Commit

Permalink
feat(gh-actions): gen2 e2e rest api (#13293)
Browse files Browse the repository at this point in the history
* feat: gen2 e2e rest api

* chore: update gen2 test name

* chore: reverted branch name

---------

Co-authored-by: israx <70438514+israx@users.noreply.github.com>
  • Loading branch information
Samaritan1011001 and israx committed May 2, 2024
1 parent 420e2c5 commit 78a21b8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/integ-config/integ-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/callable-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
browser:
required: true
type: string
backend:
required: true
type: string
amplifyjs_dir:
required: true
type: boolean
Expand Down Expand Up @@ -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 }}
Expand All @@ -85,6 +89,7 @@ jobs:
$E2E_SPEC \
$E2E_BROWSER \
dev \
$E2E_BACKEND \
$E2E_AMPLIFY_JS_DIR" \
-n $E2E_RETRY_COUNT
Expand All @@ -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 }}
Expand All @@ -109,6 +115,7 @@ jobs:
$E2E_SPEC \
$E2E_BROWSER \
prod \
$E2E_BACKEND \
$E2E_AMPLIFY_JS_DIR" \
-n $E2E_RETRY_COUNT
- name: Upload artifact
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/callable-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 78a21b8

Please sign in to comment.