Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
679bc2e
test(auth): add gen2 auth environments
zchenwei May 13, 2024
c71d39f
chore: update scripts
zchenwei May 14, 2024
a1ce46b
chore: fix paths
zchenwei May 14, 2024
88f33cc
update search patterns
zchenwei May 14, 2024
7e34e08
add gen2 examples for vue
zchenwei May 14, 2024
7a7eca8
fix vue examples
zchenwei May 14, 2024
e2317d4
fix vue examples
zchenwei May 14, 2024
684c4bd
add angular gen2 examples
zchenwei May 15, 2024
d5be098
fix angular examples
zchenwei May 15, 2024
add5384
fix json imports
zchenwei May 15, 2024
43092b9
update script
zchenwei May 15, 2024
5b71826
chore: update pull commands
zchenwei May 16, 2024
006c0c6
fix: fix pull commands
zchenwei May 16, 2024
91590f9
chore: update commands
zchenwei May 16, 2024
41b4590
update commands
zchenwei May 16, 2024
f11d715
update command
zchenwei May 16, 2024
53c76be
update commands
zchenwei May 16, 2024
b5327c5
update commands
zchenwei May 16, 2024
4ac612a
update commands
zchenwei May 16, 2024
ae7f02b
update commands
zchenwei May 20, 2024
f9c85b9
update commands
zchenwei May 20, 2024
157ed29
update comments
zchenwei May 20, 2024
1e42027
fix command
zchenwei May 20, 2024
b5100b6
update commands
zchenwei May 20, 2024
c455c1f
fix workflow
zchenwei May 20, 2024
173f144
fix fixture
zchenwei May 20, 2024
d4ec7d6
separate gen1 and gen2
zchenwei May 21, 2024
d0d2fab
chore: separate gen1 and gen2 environments pull
zchenwei May 22, 2024
c5b8327
test: separate Gen1 and Gen2 environments pull(v2)
zchenwei May 28, 2024
492e5a9
chore: remove datastore environment
zchenwei Jun 3, 2024
e0355d8
test: enable geo gen2 e2e tests
zchenwei Jun 3, 2024
746db8e
test: enable liveness gen2 e2e tests
zchenwei Jun 3, 2024
5d65365
test: enable federated signin tests for gen2
zchenwei Jun 6, 2024
7a2dcc7
test: enable name attr test for gen2
zchenwei Jun 6, 2024
611ba07
chore: update in app messaging pull command
zchenwei Jun 11, 2024
be7af4f
chore: simplify github workflow
zchenwei Jun 11, 2024
8db7a17
enable gen2 in app messaging tests
zchenwei Jun 11, 2024
5d0d21d
update vue example imports
zchenwei Jun 11, 2024
52fff6f
update gen2-auth-with-username-no-attributes generate command
zchenwei Jun 11, 2024
195af10
update workflow
zchenwei Jun 11, 2024
10f89e5
Merge branch 'main' into gen2-auth-environment-v3
zchenwei Jun 11, 2024
3cee6d5
Merge branch 'main' into gen2-auth-environment-v3
zchenwei Jun 20, 2024
afadd2d
Merge branch 'main' into gen2-auth-environment-v3
zchenwei Jun 21, 2024
0e15fef
chore: update react native example apps
zchenwei Jun 21, 2024
bf83035
remove console logging
zchenwei Jun 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
65 changes: 41 additions & 24 deletions .github/workflows/reusable-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,33 @@ jobs:
include:
- example: angular
package: angular
tags: '@angular and not @todo-angular'
tags: '@gen1 and @angular and not @todo-angular'
version: gen1

- example: next
package: react
tags: '@react and not @todo-react'
tags: '@gen1 and @react and not @todo-react'
version: gen1

- example: vue
package: vue
tags: '@vue and not @todo-vue'
tags: '@gen1 and @vue and not @todo-vue'
version: gen1

- example: angular
package: angular
tags: '@gen2 and @angular and not @todo-angular'
version: gen2

- example: next
package: react
tags: '@gen2 and @react and not @todo-react'
version: gen2

- example: vue
package: vue
tags: '@gen2 and @vue and not @todo-vue'
version: gen2

steps:
- name: Checkout Amplify UI
Expand Down Expand Up @@ -178,9 +196,14 @@ jobs:
if: ${{ matrix.package == 'react' }}
run: yarn react-liveness build

- name: Add Amplify CLI
- name: Add Amplify Gen1 CLI
if: ${{ matrix.version == 'gen1' }}
run: yarn global add @aws-amplify/cli

- name: Add Amplify Gen2 CLI
if: ${{ matrix.version == 'gen2' }}
run: yarn add @aws-amplify/backend-cli@latest aws-cdk-lib constructs -D -W

- name: Configure auth credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
Expand All @@ -197,8 +220,8 @@ jobs:
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION

- name: Pull down Auth AWS environments
run: yarn environments auth pull
- name: Pull down ${{ matrix.version }} Auth AWS environments
run: yarn environments auth pull -v ${{ matrix.version }}

- name: Configure geo credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
Expand All @@ -213,8 +236,8 @@ jobs:
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION

- name: Pull down Geo AWS environments
run: yarn environments geo pull
- name: Pull down ${{ matrix.version }} Geo AWS environments
run: yarn environments geo pull -v ${{ matrix.version }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
Expand All @@ -229,14 +252,8 @@ jobs:
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION

- name: Pull down Storage AWS environments
run: yarn environments storage pull

- name: Configure datastore credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
aws-region: us-east-2
role-to-assume: ${{ secrets.DATASTORE_E2E_ROLE_ARN }}
- name: Pull down ${{ matrix.version }} Storage AWS environments
run: yarn environments storage pull -v ${{ matrix.version }}

- name: Create temp AWS profile
run: |
Expand All @@ -245,9 +262,6 @@ jobs:
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION

- name: Pull down Datastore AWS environments
run: yarn environments datastore pull

- name: Configure liveness credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
Expand All @@ -261,8 +275,8 @@ jobs:
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION

- name: Pull down Liveness AWS environments
run: yarn environments liveness pull
- name: Pull down ${{ matrix.version }} Liveness AWS environments
run: yarn environments liveness pull -v ${{ matrix.version }}

- name: Configure in-app-messaging credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
Expand All @@ -280,17 +294,20 @@ jobs:
aws configure set aws_session_token $AWS_SESSION_TOKEN && \
aws configure set default.region $AWS_REGION

- name: Pull down In-app-messaging AWS environments
run: yarn environments in-app-messaging pull
- name: Pull down ${{ matrix.version }} In-app-messaging AWS environments
run: yarn environments in-app-messaging pull -v ${{ matrix.version }}

- name: Delete AWS profile
run: rm -rf ~/.aws

- name: Build ${{ matrix.example }} example
run: yarn ${{ matrix.example }}-example build
env:
VERSION: ${{ matrix.version }}
VITE_VERSION: ${{ matrix.version }}

- name: Start ${{ matrix.example }} example
run: yarn ${{ matrix.example }}-example start & npx wait-on -c waitOnConfig.json -t 20000 http-get://localhost:3000/ui/components/authenticator/sign-in-with-username
run: yarn ${{ matrix.example }}-example start & npx wait-on -c waitOnConfig.json -t 20000 http-get://localhost:3000/ui/components/authenticator/sign-in-with-email
env:
# Setting this value temporarily since the beta liveness sample app hits the gamma endpoint
NEXT_PUBLIC_STREAMING_API_URL: wss://streaming-rekognition-gamma.us-east-1.amazonaws.com
Expand Down
1 change: 1 addition & 0 deletions environments/auth/auth-with-all-attributes/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build/
dist/
node_modules/
aws-exports.js
amplify_outputs.json
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
Expand Down
3 changes: 2 additions & 1 deletion environments/auth/auth-with-all-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "@aws-amplify/ui-auth-with-all-attributes-environment",
"version": "0.0.1",
"scripts": {
"pull": "amplify pull --appId d401a6flvh7gn --envName dev"
"pull": "amplify pull --appId d401a6flvh7gn --envName dev",
"generate": "AWS_REGION=us-east-2 ampx generate outputs --branch gen2-auth-with-all-attributes --app-id d3lukld24augjv"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build/
dist/
node_modules/
aws-exports.js
amplify_outputs.json
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "@aws-amplify/ui-auth-with-email-and-custom-attributes-environment",
"version": "0.0.1",
"scripts": {
"pull": "amplify pull --appId d7lytt3btn9bi --envName staging"
"pull": "amplify pull --appId d7lytt3btn9bi --envName staging",
"generate": "AWS_REGION=us-east-2 ampx generate outputs --branch gen2-auth-with-email-and-custom-attributes --app-id d3lukld24augjv"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build/
dist/
node_modules/
aws-exports.js
amplify_outputs.json
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "@aws-amplify/ui-auth-with-email-lambda-signup-trigger-environment",
"version": "0.0.1",
"scripts": {
"pull": "amplify pull --appId d1ytpi9jtd8llt --envName staging"
"pull": "amplify pull --appId d1ytpi9jtd8llt --envName staging",
"generate": "AWS_REGION=us-east-2 ampx generate outputs --branch gen2-auth-with-email-lambda-signup-trigger --app-id d3lukld24augjv"
}
}
1 change: 1 addition & 0 deletions environments/auth/auth-with-email/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ build/
dist/
node_modules/
aws-exports.js
amplify_outputs.json
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
Expand Down
3 changes: 2 additions & 1 deletion environments/auth/auth-with-email/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "@aws-amplify/ui-auth-with-email-environment",
"version": "0.0.1",
"scripts": {
"pull": "amplify pull --appId d1kdwuiuk0hhkk --envName staging"
"pull": "amplify pull --appId d1kdwuiuk0hhkk --envName staging",
"generate": "AWS_REGION=us-east-2 ampx generate outputs --branch gen2-auth-with-email --app-id d3lukld24augjv"
}
}
2 changes: 2 additions & 0 deletions environments/auth/auth-with-federated/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/mock-api-resources
amplify/backend/amplify-meta.json
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
amplify_outputs.json
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
Expand Down

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions environments/auth/auth-with-federated/amplify/backend/tags.json

This file was deleted.

This file was deleted.

Loading