Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Feb 6, 2025
1 parent 1b220e2 commit 134c935
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 52 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/callable-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,52 +23,52 @@ jobs:
integ-config-headless: ${{ steps.load_config.outputs.INTEG_CONFIG_HEADLESS }}
detox-integ-config: ${{ steps.load_config.outputs.DETOX_INTEG_CONFIG }}

e2e-test-runner:
name: E2E test runnner
needs: e2e-prep
secrets: inherit
strategy:
matrix:
integ-config: ${{ fromJson(needs.e2e-prep.outputs.integ-config) }}
fail-fast: false
uses: ./.github/workflows/callable-e2e-test.yml
with:
test_name: ${{ matrix.integ-config.test_name }}
framework: ${{ matrix.integ-config.framework }}
category: ${{ matrix.integ-config.category }}
spec: ${{ matrix.integ-config.spec || '' }}
amplifyjs_dir: ${{ matrix.integ-config.amplifyjs_dir || false }}
sample_name: ${{ toJSON(matrix.integ-config.sample_name) || '[""]' }}
browser: ${{ toJSON(matrix.integ-config.browser) || '[""]' }}
timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }}
retry_count: ${{ matrix.integ-config.retry_count || 3 }}
# e2e-test-runner:
# name: E2E test runnner
# needs: e2e-prep
# secrets: inherit
# strategy:
# matrix:
# integ-config: ${{ fromJson(needs.e2e-prep.outputs.integ-config) }}
# fail-fast: false
# uses: ./.github/workflows/callable-e2e-test.yml
# with:
# test_name: ${{ matrix.integ-config.test_name }}
# framework: ${{ matrix.integ-config.framework }}
# category: ${{ matrix.integ-config.category }}
# spec: ${{ matrix.integ-config.spec || '' }}
# amplifyjs_dir: ${{ matrix.integ-config.amplifyjs_dir || false }}
# sample_name: ${{ toJSON(matrix.integ-config.sample_name) || '[""]' }}
# browser: ${{ toJSON(matrix.integ-config.browser) || '[""]' }}
# timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }}
# retry_count: ${{ matrix.integ-config.retry_count || 3 }}

e2e-test-runner-headless:
name: E2E test runnner_headless
needs: e2e-prep
secrets: inherit
strategy:
matrix:
integ-config: ${{ fromJson(needs.e2e-prep.outputs.integ-config-headless) }}
fail-fast: false
uses: ./.github/workflows/callable-e2e-test-headless.yml
with:
test_name: ${{ matrix.integ-config.test_name }}
category: ${{ matrix.integ-config.category }}
spec: ${{ matrix.integ-config.spec || '' }}
timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }}
retry_count: ${{ matrix.integ-config.retry_count || 3 }}
# e2e-test-runner-headless:
# name: E2E test runnner_headless
# needs: e2e-prep
# secrets: inherit
# strategy:
# matrix:
# integ-config: ${{ fromJson(needs.e2e-prep.outputs.integ-config-headless) }}
# fail-fast: false
# uses: ./.github/workflows/callable-e2e-test-headless.yml
# with:
# test_name: ${{ matrix.integ-config.test_name }}
# category: ${{ matrix.integ-config.category }}
# spec: ${{ matrix.integ-config.spec || '' }}
# timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }}
# retry_count: ${{ matrix.integ-config.retry_count || 3 }}

detox-e2e-test-runner:
name: E2E test runner
needs: e2e-prep
strategy:
matrix:
integ-config: ${{ fromJson(needs.e2e-prep.outputs.detox-integ-config) }}
fail-fast: false
secrets: inherit
uses: ./.github/workflows/callable-e2e-test-detox.yml
with:
test_name: ${{ matrix.integ-config.test_name }}
working_directory: ${{ matrix.integ-config.working_directory }}
timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 45 }}
# detox-e2e-test-runner:
# name: E2E test runner
# needs: e2e-prep
# strategy:
# matrix:
# integ-config: ${{ fromJson(needs.e2e-prep.outputs.detox-integ-config) }}
# fail-fast: false
# secrets: inherit
# uses: ./.github/workflows/callable-e2e-test-detox.yml
# with:
# test_name: ${{ matrix.integ-config.test_name }}
# working_directory: ${{ matrix.integ-config.working_directory }}
# timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 45 }}
8 changes: 4 additions & 4 deletions .github/workflows/push-preid-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
- test/v5-post-publish/main

jobs:
e2e:
secrets: inherit
uses: ./.github/workflows/callable-release-verification.yml
# e2e:
# secrets: inherit
# uses: ./.github/workflows/callable-release-verification.yml
parse-preid:
name: Parse preid from branch
runs-on: ubuntu-latest
Expand All @@ -28,7 +28,7 @@ jobs:

preid-release:
needs:
- e2e
# - e2e
- parse-preid
secrets: inherit
uses: ./.github/workflows/callable-npm-publish-preid.yml
Expand Down
2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"test": "jest --config ./jest.config.js",
"format": "echo \"Not implemented\"",
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json",
"postpublish": "echo $npm_package_name && echo $npm_package_version && npm dist-tag add $npm_package_name@$npm_package_version v5-post-publish"
"postpublish": "echo 🚀$npm_package_name && echo 🚀$npm_package_version && npm dist-tag add $npm_package_name@$npm_package_version v5-post-publish"
},
"main": "lib/index.js",
"react-native": {
Expand Down

0 comments on commit 134c935

Please sign in to comment.