Skip to content
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

chore: Add node auth tests to CircleCI #7915

Merged
merged 7 commits into from
Mar 12, 2021
Merged
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
44 changes: 40 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,26 @@ commands:
- store_artifacts:
path: ~/amplify-js-samples-staging/cypress/screenshots

integ_test_node_js:
parameters:
test_name:
type: string
category:
type: string
sample_name:
type: string
steps:
- run:
name: 'Install << parameters.test_name >> sample'
command: |
echo "Current NPM registry: " $(yarn config get registry)
amhinson marked this conversation as resolved.
Show resolved Hide resolved
~/amplify-js/.circleci/retry-yarn-script.sh -s 'install' -n 3
- run:
name: 'Run Node tests for << parameters.test_name >> sample'
command: |
cd ~/amplify-js-samples-staging
~/amplify-js/.circleci/retry-yarn-script.sh -s 'ci:test node << parameters.category >> << parameters.sample_name >> dev' -n 3

install_verdaccio:
steps:
- run:
Expand Down Expand Up @@ -575,7 +595,7 @@ jobs:
category: storage
sample_name: storageComp
spec: storage-comp
integ_amazon_cognito_identity_js:
integ_react_amazon_cognito_identity_js:
parameters:
browser:
type: string
Expand All @@ -591,7 +611,16 @@ jobs:
sample_name: amazon-cognito-identity-js
spec: amazon-cognito-identity-js
browser: << parameters.browser >>

integ_node_amazon_cognito_identity_js:
executor: js-test-executor
<<: *test_env_vars
working_directory: ~/amplify-js-samples-staging/samples/node/auth/amazon-cognito-identity-js
steps:
- prepare_test_env
- integ_test_node_js:
test_name: 'amazon-cognito-identity-js'
category: auth
sample_name: amazon-cognito-identity-js
integ_rn_ios_storage:
executor: macos-executor
<<: *test_env_vars
Expand Down Expand Up @@ -825,7 +854,7 @@ workflows:
- build
filters:
<<: *releasable_branches
- integ_amazon_cognito_identity_js:
- integ_react_amazon_cognito_identity_js:
requires:
- integ_setup
- build
Expand All @@ -834,6 +863,12 @@ workflows:
matrix:
parameters:
<<: *test_browsers
- integ_node_amazon_cognito_identity_js:
requires:
- integ_setup
- build
filters:
<<: *releasable_branches
- integ_rn_ios_storage:
requires:
- integ_setup
Expand Down Expand Up @@ -886,7 +921,8 @@ workflows:
- integ_react_interactions
- integ_angular_interactions
- integ_vue_interactions
- integ_amazon_cognito_identity_js
- integ_react_amazon_cognito_identity_js
- integ_node_amazon_cognito_identity_js
- integ_react_auth
- integ_angular_auth
- integ_vue_auth
Expand Down