Skip to content

chore: update ci:test to intake backend_name for e2e tests #14240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .github/integ-config/integ-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,17 +503,19 @@ tests:
- test_name: integ_next_auth_authenticator_and_ssr_page
desc: 'Authenticator and SSR page'
framework: next
category: auth
sample_name: [auth-ssr]
category: consolidated
sample_name: [next-sample]
spec: auth-ssr
browser: [chrome]
backend_name: sign-in-with-email
- test_name: integ_next_auth_authenticator_and_rsc_page
desc: 'Authenticator and RSC page'
framework: next
category: auth
sample_name: [auth-rsc]
category: consolidated
sample_name: [next-sample]
spec: auth-rsc
browser: [chrome]
backend_name: sign-in-with-email
- test_name: integ_next_sign_in_with_oauth
desc: 'Sign-in with the OAuth flow'
framework: next
Expand Down Expand Up @@ -581,19 +583,21 @@ tests:
- test_name: integ_next_auth_authenticator_and_ssr_page_gen2
desc: 'Authenticator and SSR page'
framework: next
category: auth
sample_name: [auth-ssr]
category: consolidated
sample_name: [next-sample]
spec: auth-ssr
browser: [chrome]
backend: gen2
backend_name: sign-in-with-email
- test_name: integ_next_auth_authenticator_and_rsc_page_gen2
desc: 'Authenticator and RSC page'
framework: next
category: auth
sample_name: [auth-rsc]
category: consolidated
sample_name: [next-sample]
spec: auth-rsc
browser: [chrome]
backend: gen2
backend_name: sign-in-with-email
- test_name: integ_next_sign_in_with_oauth_gen2
desc: 'Sign-in with the OAuth flow'
framework: next
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 @@ -25,6 +25,9 @@ on:
backend:
required: true
type: string
backend_name:
required: false
type: string
amplifyjs_dir:
required: true
type: boolean
Expand Down Expand Up @@ -86,6 +89,7 @@ jobs:
E2E_SPEC: ${{ inputs.spec }}
E2E_BROWSER: ${{ matrix.browser }}
E2E_BACKEND: ${{ inputs.backend }}
E2E_BACKEND_NAME: ${{ inputs.backend_name }}
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 @@ -102,6 +106,7 @@ jobs:
$E2E_BROWSER \
dev \
$E2E_BACKEND \
$E2E_BACKEND_NAME \
$E2E_AMPLIFY_JS_DIR \
--env $(echo $E2E_ENV | jq -r 'tostring')" \
$E2E_YARN_SCRIPT \
Expand All @@ -119,6 +124,7 @@ jobs:
E2E_SPEC: ${{ inputs.spec }}
E2E_BROWSER: ${{ matrix.browser }}
E2E_BACKEND: ${{ inputs.backend }}
E2E_BACKEND_NAME: ${{ inputs.backend_name }}
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 @@ -136,6 +142,7 @@ jobs:
$E2E_BROWSER \
prod \
$E2E_BACKEND \
$E2E_BACKEND_NAME \
$E2E_AMPLIFY_JS_DIR \
--env $(echo $E2E_ENV | jq -r 'tostring')" \
$E2E_YARN_SCRIPT \
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 @@ -41,6 +41,7 @@ jobs:
sample_name: ${{ toJSON(matrix.integ-config.sample_name) || '[""]' }}
browser: ${{ toJSON(matrix.integ-config.browser) || '[""]' }}
backend: ${{ matrix.integ-config.backend }}
backend_name: ${{ matrix.integ-config.backend_name || '' }}
timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }}
retry_count: ${{ matrix.integ-config.retry_count || 3 }}
yarn_script: ${{ matrix.integ-config.yarn_script || '' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
on:
push:
branches:
- replace-with-your-branch
- yuhengsh-ci-test-auth

jobs:
e2e:
Expand Down
Loading