Skip to content

Commit

Permalink
chore: Add node auth tests to CircleCI (#7915)
Browse files Browse the repository at this point in the history
  • Loading branch information
amhinson authored Mar 12, 2021
1 parent 5cce7e6 commit 7c8eb92
Showing 1 changed file with 40 additions and 4 deletions.
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)
~/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

0 comments on commit 7c8eb92

Please sign in to comment.