-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
poc add test workflow and new install script changes
- Loading branch information
1 parent
daa2e9b
commit 5de99cc
Showing
4 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Description: Test publish/next workflow with separate tag + install with delays | ||
# | ||
# Triggered by: push to `poc-ci-fix` | ||
|
||
name: POC / Test Publish With Delay | ||
|
||
concurrency: | ||
group: e2e-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
branches: [poc-ci-fix] | ||
|
||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
|
||
jobs: | ||
setup-cache: | ||
uses: aws-amplify/amplify-ui/.github/workflows/reusable-setup-cache.yml@main | ||
with: | ||
commit: ${{ github.sha }} | ||
repository: ${{ github.repository }} | ||
|
||
unit: | ||
uses: aws-amplify/amplify-ui/.github/workflows/reusable-unit.yml@main | ||
needs: setup-cache | ||
with: | ||
commit: ${{ github.sha }} | ||
repository: ${{ github.repository }} | ||
|
||
e2e: | ||
uses: aws-amplify/amplify-ui/.github/workflows/reusable-e2e.yml@main | ||
needs: unit | ||
with: | ||
commit: ${{ github.sha }} | ||
repository: ${{ github.repository }} | ||
skip-changed-packages-check: 'true' # always run e2e tests for native platform on main | ||
secrets: | ||
AUTH_E2E_ROLE_ARN: ${{ secrets.AUTH_E2E_ROLE_ARN }} | ||
DATASTORE_E2E_ROLE_ARN: ${{ secrets.DATASTORE_E2E_ROLE_ARN }} | ||
GEO_E2E_ROLE_ARN: ${{ secrets.GEO_E2E_ROLE_ARN }} | ||
STORAGE_E2E_ROLE_ARN: ${{ secrets.STORAGE_E2E_ROLE_ARN }} | ||
LIVENESS_E2E_ROLE_ARN: ${{ secrets.LIVENESS_E2E_ROLE_ARN }} | ||
IN_APP_MESSAGING_E2E_ROLE_ARN: ${{ secrets.IN_APP_MESSAGING_E2E_ROLE_ARN }} | ||
AI_E2E_ROLE_ARN: ${{ secrets.AI_E2E_ROLE_ARN }} | ||
DOMAIN: ${{ secrets.DOMAIN }} | ||
PHONE_NUMBER: ${{ secrets.PHONE_NUMBER }} | ||
USERNAME: ${{ secrets.USERNAME }} | ||
NEW_PASSWORD: ${{ secrets.NEW_PASSWORD }} | ||
VALID_PASSWORD: ${{ secrets.VALID_PASSWORD }} | ||
SITE_URL: ${{ secrets.SITE_URL }} | ||
DOCSEARCH_DOCS_APP_ID: ${{ secrets.DOCSEARCH_DOCS_APP_ID }} | ||
DOCSEARCH_DOCS_API_KEY: ${{ secrets.DOCSEARCH_DOCS_API_KEY }} | ||
DOCSEARCH_DOCS_INDEX_NAME: ${{ secrets.DOCSEARCH_DOCS_INDEX_NAME }} | ||
|
||
publish: | ||
uses: aws-amplify/amplify-ui/.github/workflows/reusable-tagged-publish.yml@main | ||
with: | ||
dist-tag: testdelay | ||
secrets: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# deploy-sample-app: | ||
# runs-on: ubuntu-latest | ||
# environment: deployment | ||
# needs: publish | ||
# steps: | ||
# - name: Trigger build for beta liveness sample app pointing at next tag | ||
# run: curl -X POST -d {} $ENDPOINT -H "Content-Type:application/json" | ||
# env: | ||
# ENDPOINT: ${{ secrets.LIVENESS_BETA_SAMPLE_APP_BUILD_TRIGGER }} | ||
|
||
build-test: | ||
uses: ./.github/workflows/reusable-build-system-test.yml | ||
needs: publish | ||
with: | ||
dist-tag: testdelay | ||
secrets: | ||
AUTH_E2E_ROLE_ARN: ${{ secrets.AUTH_E2E_ROLE_ARN }} | ||
DOMAIN: ${{ secrets.DOMAIN }} | ||
PHONE_NUMBER: ${{ secrets.PHONE_NUMBER }} | ||
USERNAME: ${{ secrets.USERNAME }} | ||
NEW_PASSWORD: ${{ secrets.NEW_PASSWORD }} | ||
VALID_PASSWORD: ${{ secrets.VALID_PASSWORD }} | ||
|
||
build-test-react-native: | ||
uses: ./.github/workflows/reusable-build-system-test-react-native.yml | ||
needs: publish | ||
with: | ||
dist-tag: testdelay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters