@@ -478,16 +478,17 @@ jobs:
478
478
contents : read
479
479
steps :
480
480
- uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # version 4.1.4
481
+ - name : Set file descriptor limit on macOS
482
+ if : runner.os == 'macOS'
483
+ run : ulimit -n 10000
481
484
- name : Run e2e deployment tests
482
485
uses : ./.github/actions/run_with_e2e_account
483
486
with :
484
487
e2e_test_accounts : ${{ vars.E2E_TEST_ACCOUNTS }}
485
488
node_version : ${{ matrix.node-version }}
486
489
cdk-lib-version : ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
487
490
link_cli : true
488
- run : |
489
- [[ "$RUNNER_OS" == "macOS" ]] && ulimit -n 10000
490
- npm run test:dir ${{ matrix.testPaths }}
491
+ run : npm run test:dir ${{ matrix.testPaths }}
491
492
e2e_generate_sandbox_tests_matrix :
492
493
if : needs.do_include_e2e.outputs.run_e2e == 'true'
493
494
runs-on : ubuntu-latest
@@ -527,16 +528,17 @@ jobs:
527
528
contents : read
528
529
steps :
529
530
- uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # version 4.1.4
531
+ - name : Set file descriptor limit on macOS
532
+ if : runner.os == 'macOS'
533
+ run : ulimit -n 10000
530
534
- name : Run e2e sandbox tests
531
535
uses : ./.github/actions/run_with_e2e_account
532
536
with :
533
537
e2e_test_accounts : ${{ vars.E2E_TEST_ACCOUNTS }}
534
538
node_version : ${{ matrix.node-version }}
535
539
cdk-lib-version : ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
536
540
link_cli : true
537
- run : |
538
- [[ "$RUNNER_OS" == "macOS" ]] && ulimit -n 10000
539
- npm run test:dir ${{ matrix.testPaths }}
541
+ run : npm run test:dir ${{ matrix.testPaths }}
540
542
e2e_notices :
541
543
if : needs.do_include_e2e.outputs.run_e2e == 'true'
542
544
strategy :
@@ -565,10 +567,11 @@ jobs:
565
567
node-version : 18
566
568
cdk-lib-version : ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
567
569
- run : cd packages/cli && npm link
570
+ - name : Set file descriptor limit on macOS
571
+ if : runner.os == 'macOS'
572
+ run : ulimit -n 10000
568
573
- name : Run e2e notices tests
569
- run : |
570
- [[ "$RUNNER_OS" == "macOS" ]] && ulimit -n 10000
571
- npm run test:dir packages/integration-tests/lib/test-e2e/notices.test.js
574
+ run : npm run test:dir packages/integration-tests/lib/test-e2e/notices.test.js
572
575
e2e_backend_output :
573
576
if : needs.do_include_e2e.outputs.run_e2e == 'true'
574
577
runs-on : ubuntu-latest
@@ -625,10 +628,11 @@ jobs:
625
628
node-version : ${{ matrix.node-version }}
626
629
cdk-lib-version : ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
627
630
- run : cd packages/cli && npm link
631
+ - name : Set file descriptor limit on macOS
632
+ if : runner.os == 'macOS'
633
+ run : ulimit -n 10000
628
634
- name : Run e2e create-amplify tests
629
- run : |
630
- [[ "$RUNNER_OS" == "macOS" ]] && ulimit -n 10000
631
- npm run test:dir packages/integration-tests/lib/test-e2e/create_amplify.test.js
635
+ run : npm run test:dir packages/integration-tests/lib/test-e2e/create_amplify.test.js
632
636
e2e_package_manager :
633
637
if : needs.do_include_e2e.outputs.run_e2e == 'true' && needs.do_include_e2e.outputs.include_package_manager_e2e == 'true'
634
638
strategy :
@@ -653,16 +657,17 @@ jobs:
653
657
steps :
654
658
- name : Checkout aws-amplify/amplify-backend repo
655
659
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
660
+ - name : Set file descriptor limit on macOS
661
+ if : runner.os == 'macOS'
662
+ run : ulimit -n 10000
656
663
- name : Run E2E flow tests with ${{ matrix.pkg-manager }}
657
664
uses : ./.github/actions/run_with_e2e_account
658
665
with :
659
666
e2e_test_accounts : ${{ vars.E2E_TEST_ACCOUNTS }}
660
667
node_version : ${{ matrix.node-version }}
661
668
cdk-lib-version : ${{ needs.resolve_inputs.outputs.cdk_lib_version }}
662
669
shell : bash
663
- run : |
664
- [[ "$RUNNER_OS" == "macOS" ]] && ulimit -n 10000
665
- PACKAGE_MANAGER=${{matrix.pkg-manager}} npm run test:dir packages/integration-tests/src/package_manager_sanity_checks.test.ts
670
+ run : PACKAGE_MANAGER=${{matrix.pkg-manager}} npm run test:dir packages/integration-tests/src/package_manager_sanity_checks.test.ts
666
671
lint :
667
672
runs-on : ubuntu-latest
668
673
needs :
0 commit comments