diff --git a/.github/workflows/amplify_analytics_pinpoint.yaml b/.github/workflows/amplify_analytics_pinpoint.yaml index 25d3ff5324..57a35924b4 100644 --- a/.github/workflows/amplify_analytics_pinpoint.yaml +++ b/.github/workflows/amplify_analytics_pinpoint.yaml @@ -50,4 +50,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_analytics_pinpoint working-directory: packages/analytics/amplify_analytics_pinpoint diff --git a/.github/workflows/amplify_analytics_pinpoint_dart.yaml b/.github/workflows/amplify_analytics_pinpoint_dart.yaml index 8cb7dd1852..15405d408f 100644 --- a/.github/workflows/amplify_analytics_pinpoint_dart.yaml +++ b/.github/workflows/amplify_analytics_pinpoint_dart.yaml @@ -48,19 +48,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_analytics_pinpoint_dart working-directory: packages/analytics/amplify_analytics_pinpoint_dart native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_analytics_pinpoint_dart working-directory: packages/analytics/amplify_analytics_pinpoint_dart ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: amplify_analytics_pinpoint_dart working-directory: packages/analytics/amplify_analytics_pinpoint_dart dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: amplify_analytics_pinpoint_dart working-directory: packages/analytics/amplify_analytics_pinpoint_dart diff --git a/.github/workflows/amplify_api.yaml b/.github/workflows/amplify_api.yaml index 6c337af9e7..e6c9532692 100644 --- a/.github/workflows/amplify_api.yaml +++ b/.github/workflows/amplify_api.yaml @@ -44,4 +44,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_api working-directory: packages/api/amplify_api diff --git a/.github/workflows/amplify_api_dart.yaml b/.github/workflows/amplify_api_dart.yaml index 93a5f2a1e7..a6e788299f 100644 --- a/.github/workflows/amplify_api_dart.yaml +++ b/.github/workflows/amplify_api_dart.yaml @@ -36,19 +36,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_api_dart working-directory: packages/api/amplify_api_dart native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_api_dart working-directory: packages/api/amplify_api_dart ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: amplify_api_dart working-directory: packages/api/amplify_api_dart dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: amplify_api_dart working-directory: packages/api/amplify_api_dart diff --git a/.github/workflows/amplify_auth_cognito.yaml b/.github/workflows/amplify_auth_cognito.yaml index fb3b2f5681..2ee249d055 100644 --- a/.github/workflows/amplify_auth_cognito.yaml +++ b/.github/workflows/amplify_auth_cognito.yaml @@ -58,4 +58,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_auth_cognito working-directory: packages/auth/amplify_auth_cognito diff --git a/.github/workflows/amplify_auth_cognito_dart.yaml b/.github/workflows/amplify_auth_cognito_dart.yaml index f158d295c3..89070d2133 100644 --- a/.github/workflows/amplify_auth_cognito_dart.yaml +++ b/.github/workflows/amplify_auth_cognito_dart.yaml @@ -49,9 +49,11 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_auth_cognito_dart working-directory: packages/auth/amplify_auth_cognito_dart native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_auth_cognito_dart working-directory: packages/auth/amplify_auth_cognito_dart diff --git a/.github/workflows/amplify_auth_cognito_test.yaml b/.github/workflows/amplify_auth_cognito_test.yaml index acfde4da34..0291c2ca9f 100644 --- a/.github/workflows/amplify_auth_cognito_test.yaml +++ b/.github/workflows/amplify_auth_cognito_test.yaml @@ -54,19 +54,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_auth_cognito_test working-directory: packages/auth/amplify_auth_cognito_test native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_auth_cognito_test working-directory: packages/auth/amplify_auth_cognito_test ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: amplify_auth_cognito_test working-directory: packages/auth/amplify_auth_cognito_test dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: amplify_auth_cognito_test working-directory: packages/auth/amplify_auth_cognito_test diff --git a/.github/workflows/amplify_authenticator.yaml b/.github/workflows/amplify_authenticator.yaml index fd39f91539..da71cf5d69 100644 --- a/.github/workflows/amplify_authenticator.yaml +++ b/.github/workflows/amplify_authenticator.yaml @@ -60,4 +60,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_authenticator working-directory: packages/authenticator/amplify_authenticator diff --git a/.github/workflows/amplify_core.yaml b/.github/workflows/amplify_core.yaml index 02f4297b2e..424d512add 100644 --- a/.github/workflows/amplify_core.yaml +++ b/.github/workflows/amplify_core.yaml @@ -34,19 +34,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_core working-directory: packages/amplify_core native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_core working-directory: packages/amplify_core ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: amplify_core working-directory: packages/amplify_core dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: amplify_core working-directory: packages/amplify_core diff --git a/.github/workflows/amplify_datastore.yaml b/.github/workflows/amplify_datastore.yaml index 8ae5c5585f..2f9baf05a2 100644 --- a/.github/workflows/amplify_datastore.yaml +++ b/.github/workflows/amplify_datastore.yaml @@ -34,4 +34,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_datastore working-directory: packages/amplify_datastore diff --git a/.github/workflows/amplify_datastore_plugin_interface.yaml b/.github/workflows/amplify_datastore_plugin_interface.yaml index 794aed1587..478b407b90 100644 --- a/.github/workflows/amplify_datastore_plugin_interface.yaml +++ b/.github/workflows/amplify_datastore_plugin_interface.yaml @@ -32,4 +32,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_datastore_plugin_interface working-directory: packages/amplify_datastore_plugin_interface diff --git a/.github/workflows/amplify_db_common.yaml b/.github/workflows/amplify_db_common.yaml index e6c78aae56..bd851e3a18 100644 --- a/.github/workflows/amplify_db_common.yaml +++ b/.github/workflows/amplify_db_common.yaml @@ -34,4 +34,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_db_common working-directory: packages/common/amplify_db_common diff --git a/.github/workflows/amplify_db_common_dart.yaml b/.github/workflows/amplify_db_common_dart.yaml index 1104572265..e0fd7ecd8f 100644 --- a/.github/workflows/amplify_db_common_dart.yaml +++ b/.github/workflows/amplify_db_common_dart.yaml @@ -36,19 +36,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_db_common_dart working-directory: packages/common/amplify_db_common_dart native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_db_common_dart working-directory: packages/common/amplify_db_common_dart ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: amplify_db_common_dart working-directory: packages/common/amplify_db_common_dart dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: amplify_db_common_dart working-directory: packages/common/amplify_db_common_dart diff --git a/.github/workflows/amplify_flutter.yaml b/.github/workflows/amplify_flutter.yaml index 11b014d7f4..318bcc1ccc 100644 --- a/.github/workflows/amplify_flutter.yaml +++ b/.github/workflows/amplify_flutter.yaml @@ -40,4 +40,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_flutter working-directory: packages/amplify/amplify_flutter diff --git a/.github/workflows/amplify_lints.yaml b/.github/workflows/amplify_lints.yaml index d5aec50db3..67e9ed7dbb 100644 --- a/.github/workflows/amplify_lints.yaml +++ b/.github/workflows/amplify_lints.yaml @@ -24,4 +24,5 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_lints working-directory: packages/amplify_lints diff --git a/.github/workflows/amplify_native_legacy_wrapper.yaml b/.github/workflows/amplify_native_legacy_wrapper.yaml index d38f39d698..9f41d9c048 100644 --- a/.github/workflows/amplify_native_legacy_wrapper.yaml +++ b/.github/workflows/amplify_native_legacy_wrapper.yaml @@ -26,4 +26,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_native_legacy_wrapper working-directory: packages/amplify_native_legacy_wrapper diff --git a/.github/workflows/amplify_push_notifications.yaml b/.github/workflows/amplify_push_notifications.yaml index 63c1ec87b6..bcf2fd4e6d 100644 --- a/.github/workflows/amplify_push_notifications.yaml +++ b/.github/workflows/amplify_push_notifications.yaml @@ -43,4 +43,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_push_notifications working-directory: packages/notifications/push/amplify_push_notifications diff --git a/.github/workflows/amplify_push_notifications_pinpoint.yaml b/.github/workflows/amplify_push_notifications_pinpoint.yaml index 86fe21b51c..61424dd298 100644 --- a/.github/workflows/amplify_push_notifications_pinpoint.yaml +++ b/.github/workflows/amplify_push_notifications_pinpoint.yaml @@ -62,4 +62,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_push_notifications_pinpoint working-directory: packages/notifications/push/amplify_push_notifications_pinpoint diff --git a/.github/workflows/amplify_secure_storage.yaml b/.github/workflows/amplify_secure_storage.yaml index 6015d57c16..0101859168 100644 --- a/.github/workflows/amplify_secure_storage.yaml +++ b/.github/workflows/amplify_secure_storage.yaml @@ -34,4 +34,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_secure_storage working-directory: packages/secure_storage/amplify_secure_storage diff --git a/.github/workflows/amplify_secure_storage_dart.yaml b/.github/workflows/amplify_secure_storage_dart.yaml index 6636b1386c..bb416bbf2f 100644 --- a/.github/workflows/amplify_secure_storage_dart.yaml +++ b/.github/workflows/amplify_secure_storage_dart.yaml @@ -32,4 +32,5 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_secure_storage_dart working-directory: packages/secure_storage/amplify_secure_storage_dart diff --git a/.github/workflows/amplify_secure_storage_test.yaml b/.github/workflows/amplify_secure_storage_test.yaml index 42ae2239b5..cc455968e2 100644 --- a/.github/workflows/amplify_secure_storage_test.yaml +++ b/.github/workflows/amplify_secure_storage_test.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_secure_storage_test working-directory: packages/secure_storage/amplify_secure_storage_test native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_secure_storage_test working-directory: packages/secure_storage/amplify_secure_storage_test ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: amplify_secure_storage_test working-directory: packages/secure_storage/amplify_secure_storage_test dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: amplify_secure_storage_test working-directory: packages/secure_storage/amplify_secure_storage_test diff --git a/.github/workflows/amplify_storage_s3.yaml b/.github/workflows/amplify_storage_s3.yaml index 77fd382106..8e0248b197 100644 --- a/.github/workflows/amplify_storage_s3.yaml +++ b/.github/workflows/amplify_storage_s3.yaml @@ -42,4 +42,5 @@ jobs: test: uses: ./.github/workflows/flutter_vm.yaml with: + package-name: amplify_storage_s3 working-directory: packages/storage/amplify_storage_s3 diff --git a/.github/workflows/amplify_storage_s3_dart.yaml b/.github/workflows/amplify_storage_s3_dart.yaml index b487a1aad2..5cbd58608c 100644 --- a/.github/workflows/amplify_storage_s3_dart.yaml +++ b/.github/workflows/amplify_storage_s3_dart.yaml @@ -39,9 +39,11 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: amplify_storage_s3_dart working-directory: packages/storage/amplify_storage_s3_dart native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: amplify_storage_s3_dart working-directory: packages/storage/amplify_storage_s3_dart diff --git a/.github/workflows/aws_common.yaml b/.github/workflows/aws_common.yaml index d48fd00752..c0ec3d59b4 100644 --- a/.github/workflows/aws_common.yaml +++ b/.github/workflows/aws_common.yaml @@ -30,19 +30,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_common working-directory: packages/aws_common native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_common working-directory: packages/aws_common ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_common working-directory: packages/aws_common dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_common working-directory: packages/aws_common diff --git a/.github/workflows/aws_json1_0_v1.yaml b/.github/workflows/aws_json1_0_v1.yaml index a8c21d9fb1..580488c106 100644 --- a/.github/workflows/aws_json1_0_v1.yaml +++ b/.github/workflows/aws_json1_0_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_json1_0_v1 working-directory: packages/smithy/goldens/lib/awsJson1_0 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_json1_0_v1 working-directory: packages/smithy/goldens/lib/awsJson1_0 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_json1_0_v1 working-directory: packages/smithy/goldens/lib/awsJson1_0 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_json1_0_v1 working-directory: packages/smithy/goldens/lib/awsJson1_0 diff --git a/.github/workflows/aws_json1_0_v2.yaml b/.github/workflows/aws_json1_0_v2.yaml index cb0b2cf331..26531be1fb 100644 --- a/.github/workflows/aws_json1_0_v2.yaml +++ b/.github/workflows/aws_json1_0_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_json1_0_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_0 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_json1_0_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_0 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_json1_0_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_0 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_json1_0_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_0 diff --git a/.github/workflows/aws_json1_1_v1.yaml b/.github/workflows/aws_json1_1_v1.yaml index a3abb8773d..9872708c2b 100644 --- a/.github/workflows/aws_json1_1_v1.yaml +++ b/.github/workflows/aws_json1_1_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_json1_1_v1 working-directory: packages/smithy/goldens/lib/awsJson1_1 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_json1_1_v1 working-directory: packages/smithy/goldens/lib/awsJson1_1 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_json1_1_v1 working-directory: packages/smithy/goldens/lib/awsJson1_1 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_json1_1_v1 working-directory: packages/smithy/goldens/lib/awsJson1_1 diff --git a/.github/workflows/aws_json1_1_v2.yaml b/.github/workflows/aws_json1_1_v2.yaml index bdbcc266ca..ad8f595c80 100644 --- a/.github/workflows/aws_json1_1_v2.yaml +++ b/.github/workflows/aws_json1_1_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_json1_1_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_1 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_json1_1_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_1 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_json1_1_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_1 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_json1_1_v2 working-directory: packages/smithy/goldens/lib2/awsJson1_1 diff --git a/.github/workflows/aws_query_v1.yaml b/.github/workflows/aws_query_v1.yaml index e241ad4a5c..aafbe5d51a 100644 --- a/.github/workflows/aws_query_v1.yaml +++ b/.github/workflows/aws_query_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_query_v1 working-directory: packages/smithy/goldens/lib/awsQuery native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_query_v1 working-directory: packages/smithy/goldens/lib/awsQuery ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_query_v1 working-directory: packages/smithy/goldens/lib/awsQuery dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_query_v1 working-directory: packages/smithy/goldens/lib/awsQuery diff --git a/.github/workflows/aws_query_v2.yaml b/.github/workflows/aws_query_v2.yaml index 67d21ed725..5f941f0ea0 100644 --- a/.github/workflows/aws_query_v2.yaml +++ b/.github/workflows/aws_query_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_query_v2 working-directory: packages/smithy/goldens/lib2/awsQuery native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_query_v2 working-directory: packages/smithy/goldens/lib2/awsQuery ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_query_v2 working-directory: packages/smithy/goldens/lib2/awsQuery dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_query_v2 working-directory: packages/smithy/goldens/lib2/awsQuery diff --git a/.github/workflows/aws_signature_v4.yaml b/.github/workflows/aws_signature_v4.yaml index 41b34b95c4..5ac5009c1b 100644 --- a/.github/workflows/aws_signature_v4.yaml +++ b/.github/workflows/aws_signature_v4.yaml @@ -32,19 +32,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: aws_signature_v4 working-directory: packages/aws_signature_v4 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: aws_signature_v4 working-directory: packages/aws_signature_v4 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: aws_signature_v4 working-directory: packages/aws_signature_v4 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: aws_signature_v4 working-directory: packages/aws_signature_v4 diff --git a/.github/workflows/custom_v1.yaml b/.github/workflows/custom_v1.yaml index 7bb9a1c65d..07c3ae544a 100644 --- a/.github/workflows/custom_v1.yaml +++ b/.github/workflows/custom_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: custom_v1 working-directory: packages/smithy/goldens/lib/custom native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: custom_v1 working-directory: packages/smithy/goldens/lib/custom ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: custom_v1 working-directory: packages/smithy/goldens/lib/custom dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: custom_v1 working-directory: packages/smithy/goldens/lib/custom diff --git a/.github/workflows/custom_v2.yaml b/.github/workflows/custom_v2.yaml index adfda3bee7..fcc9f47e54 100644 --- a/.github/workflows/custom_v2.yaml +++ b/.github/workflows/custom_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: custom_v2 working-directory: packages/smithy/goldens/lib2/custom native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: custom_v2 working-directory: packages/smithy/goldens/lib2/custom ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: custom_v2 working-directory: packages/smithy/goldens/lib2/custom dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: custom_v2 working-directory: packages/smithy/goldens/lib2/custom diff --git a/.github/workflows/dart_dart2js.yaml b/.github/workflows/dart_dart2js.yaml index 5ed561e9f4..a9e6f3a6e0 100644 --- a/.github/workflows/dart_dart2js.yaml +++ b/.github/workflows/dart_dart2js.yaml @@ -2,6 +2,10 @@ name: Dart (dart2js) on: workflow_call: inputs: + package-name: + description: The name of the package being tested + required: true + type: string working-directory: description: The working directory relative to the repo root required: true @@ -65,7 +69,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Setup Package if: "always() && steps.bootstrap.conclusion == 'success'" diff --git a/.github/workflows/dart_ddc.yaml b/.github/workflows/dart_ddc.yaml index ea233048d8..6f506f5fd4 100644 --- a/.github/workflows/dart_ddc.yaml +++ b/.github/workflows/dart_ddc.yaml @@ -2,6 +2,10 @@ name: Dart (DDC) on: workflow_call: inputs: + package-name: + description: The name of the package being tested + required: true + type: string working-directory: description: The working directory relative to the repo root required: true @@ -65,7 +69,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Setup Package if: "always() && steps.bootstrap.conclusion == 'success'" diff --git a/.github/workflows/dart_native.yaml b/.github/workflows/dart_native.yaml index 6811f9ba12..073b75c2b8 100644 --- a/.github/workflows/dart_native.yaml +++ b/.github/workflows/dart_native.yaml @@ -3,6 +3,10 @@ name: Dart (Native) on: workflow_call: inputs: + package-name: + description: The name of the package being tested + required: true + type: string working-directory: description: The working directory relative to the repo root required: true @@ -73,7 +77,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Setup Package if: "always() && steps.bootstrap.conclusion == 'success'" diff --git a/.github/workflows/dart_vm.yaml b/.github/workflows/dart_vm.yaml index 9d93c85255..03c116421f 100644 --- a/.github/workflows/dart_vm.yaml +++ b/.github/workflows/dart_vm.yaml @@ -2,6 +2,10 @@ name: Dart (VM) on: workflow_call: inputs: + package-name: + description: The name of the package being tested + required: true + type: string working-directory: description: The working directory relative to the repo root required: true @@ -56,7 +60,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Check Formatting if: "always() && steps.bootstrap.conclusion == 'success' && matrix.sdk == 'stable'" diff --git a/.github/workflows/flutter_android.build.yaml b/.github/workflows/flutter_android.build.yaml index 299aa7e3af..ae01db0dd9 100644 --- a/.github/workflows/flutter_android.build.yaml +++ b/.github/workflows/flutter_android.build.yaml @@ -42,7 +42,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Build for Android run: flutter build apk --debug --verbose diff --git a/.github/workflows/flutter_android.test.yaml b/.github/workflows/flutter_android.test.yaml index a6313d6194..a5d8d8b56a 100644 --- a/.github/workflows/flutter_android.test.yaml +++ b/.github/workflows/flutter_android.test.yaml @@ -42,7 +42,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Run Android unit tests run: | diff --git a/.github/workflows/flutter_ios.yaml b/.github/workflows/flutter_ios.yaml index 1b5d902ebe..a47d403611 100644 --- a/.github/workflows/flutter_ios.yaml +++ b/.github/workflows/flutter_ios.yaml @@ -47,7 +47,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Run iOS unit tests run: | diff --git a/.github/workflows/flutter_vm.yaml b/.github/workflows/flutter_vm.yaml index 4830d67000..405464dd84 100644 --- a/.github/workflows/flutter_vm.yaml +++ b/.github/workflows/flutter_vm.yaml @@ -2,6 +2,10 @@ name: Flutter (VM) on: workflow_call: inputs: + package-name: + description: The name of the package being tested + required: true + type: string working-directory: description: The working directory relative to the repo root required: true @@ -44,7 +48,7 @@ jobs: - name: Bootstrap id: bootstrap timeout-minutes: 20 - run: aft bootstrap --fail-fast + run: aft bootstrap --fail-fast --include=${{ inputs.package-name }} - name: Check Formatting if: "always() && steps.bootstrap.conclusion == 'success'" diff --git a/.github/workflows/rest_json1_v1.yaml b/.github/workflows/rest_json1_v1.yaml index ad5c12d822..44b37cc229 100644 --- a/.github/workflows/rest_json1_v1.yaml +++ b/.github/workflows/rest_json1_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: rest_json1_v1 working-directory: packages/smithy/goldens/lib/restJson1 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: rest_json1_v1 working-directory: packages/smithy/goldens/lib/restJson1 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: rest_json1_v1 working-directory: packages/smithy/goldens/lib/restJson1 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: rest_json1_v1 working-directory: packages/smithy/goldens/lib/restJson1 diff --git a/.github/workflows/rest_json1_v2.yaml b/.github/workflows/rest_json1_v2.yaml index 7b9596ca11..e5e0d392f8 100644 --- a/.github/workflows/rest_json1_v2.yaml +++ b/.github/workflows/rest_json1_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: rest_json1_v2 working-directory: packages/smithy/goldens/lib2/restJson1 native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: rest_json1_v2 working-directory: packages/smithy/goldens/lib2/restJson1 ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: rest_json1_v2 working-directory: packages/smithy/goldens/lib2/restJson1 dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: rest_json1_v2 working-directory: packages/smithy/goldens/lib2/restJson1 diff --git a/.github/workflows/rest_xml_v1.yaml b/.github/workflows/rest_xml_v1.yaml index 47125443d3..7ec0ba7fd8 100644 --- a/.github/workflows/rest_xml_v1.yaml +++ b/.github/workflows/rest_xml_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: rest_xml_v1 working-directory: packages/smithy/goldens/lib/restXml native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: rest_xml_v1 working-directory: packages/smithy/goldens/lib/restXml ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: rest_xml_v1 working-directory: packages/smithy/goldens/lib/restXml dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: rest_xml_v1 working-directory: packages/smithy/goldens/lib/restXml diff --git a/.github/workflows/rest_xml_v2.yaml b/.github/workflows/rest_xml_v2.yaml index 1c5b2ba5d3..a7ab31baf5 100644 --- a/.github/workflows/rest_xml_v2.yaml +++ b/.github/workflows/rest_xml_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: rest_xml_v2 working-directory: packages/smithy/goldens/lib2/restXml native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: rest_xml_v2 working-directory: packages/smithy/goldens/lib2/restXml ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: rest_xml_v2 working-directory: packages/smithy/goldens/lib2/restXml dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: rest_xml_v2 working-directory: packages/smithy/goldens/lib2/restXml diff --git a/.github/workflows/rest_xml_with_namespace_v1.yaml b/.github/workflows/rest_xml_with_namespace_v1.yaml index 3e24dbc5e5..1e840a3231 100644 --- a/.github/workflows/rest_xml_with_namespace_v1.yaml +++ b/.github/workflows/rest_xml_with_namespace_v1.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: rest_xml_with_namespace_v1 working-directory: packages/smithy/goldens/lib/restXmlWithNamespace native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: rest_xml_with_namespace_v1 working-directory: packages/smithy/goldens/lib/restXmlWithNamespace ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: rest_xml_with_namespace_v1 working-directory: packages/smithy/goldens/lib/restXmlWithNamespace dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: rest_xml_with_namespace_v1 working-directory: packages/smithy/goldens/lib/restXmlWithNamespace diff --git a/.github/workflows/rest_xml_with_namespace_v2.yaml b/.github/workflows/rest_xml_with_namespace_v2.yaml index 82c7b0c8ce..96ddce2aee 100644 --- a/.github/workflows/rest_xml_with_namespace_v2.yaml +++ b/.github/workflows/rest_xml_with_namespace_v2.yaml @@ -38,19 +38,23 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: rest_xml_with_namespace_v2 working-directory: packages/smithy/goldens/lib2/restXmlWithNamespace native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: rest_xml_with_namespace_v2 working-directory: packages/smithy/goldens/lib2/restXmlWithNamespace ddc_test: needs: test uses: ./.github/workflows/dart_ddc.yaml with: + package-name: rest_xml_with_namespace_v2 working-directory: packages/smithy/goldens/lib2/restXmlWithNamespace dart2js_test: needs: test uses: ./.github/workflows/dart_dart2js.yaml with: + package-name: rest_xml_with_namespace_v2 working-directory: packages/smithy/goldens/lib2/restXmlWithNamespace diff --git a/.github/workflows/smithy.yaml b/.github/workflows/smithy.yaml index 8a599e19b7..02ea55e10d 100644 --- a/.github/workflows/smithy.yaml +++ b/.github/workflows/smithy.yaml @@ -29,9 +29,11 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: smithy working-directory: packages/smithy/smithy native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: smithy working-directory: packages/smithy/smithy diff --git a/.github/workflows/smithy_aws.yaml b/.github/workflows/smithy_aws.yaml index 56841208f4..30235222ae 100644 --- a/.github/workflows/smithy_aws.yaml +++ b/.github/workflows/smithy_aws.yaml @@ -33,9 +33,11 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: smithy_aws working-directory: packages/smithy/smithy_aws native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: smithy_aws working-directory: packages/smithy/smithy_aws diff --git a/.github/workflows/smithy_codegen.yaml b/.github/workflows/smithy_codegen.yaml index 5f4f9725dd..2d6117dfae 100644 --- a/.github/workflows/smithy_codegen.yaml +++ b/.github/workflows/smithy_codegen.yaml @@ -35,9 +35,11 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: smithy_codegen working-directory: packages/smithy/smithy_codegen native_test: needs: test uses: ./.github/workflows/dart_native.yaml with: + package-name: smithy_codegen working-directory: packages/smithy/smithy_codegen diff --git a/.github/workflows/worker_bee.yaml b/.github/workflows/worker_bee.yaml index be77abb299..63e3044189 100644 --- a/.github/workflows/worker_bee.yaml +++ b/.github/workflows/worker_bee.yaml @@ -28,4 +28,5 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: worker_bee working-directory: packages/worker_bee/worker_bee diff --git a/.github/workflows/worker_bee_builder.yaml b/.github/workflows/worker_bee_builder.yaml index 030e411303..60daa6db16 100644 --- a/.github/workflows/worker_bee_builder.yaml +++ b/.github/workflows/worker_bee_builder.yaml @@ -30,4 +30,5 @@ jobs: test: uses: ./.github/workflows/dart_vm.yaml with: + package-name: worker_bee_builder working-directory: packages/worker_bee/worker_bee_builder diff --git a/packages/aft/lib/src/commands/bootstrap_command.dart b/packages/aft/lib/src/commands/bootstrap_command.dart index 0bb8e36881..f43c00cfe2 100644 --- a/packages/aft/lib/src/commands/bootstrap_command.dart +++ b/packages/aft/lib/src/commands/bootstrap_command.dart @@ -71,33 +71,47 @@ const amplifyEnvironments = {}; await super.run(); await linkPackages(); - final bootstrapPackages = commandPackages.values.where( - // Skip bootstrap for `aft` since it has already had `dart pub upgrade` - // run with the native command, and running it again with the embedded - // command could cause issues later on, esp. when the native `pub` - // command is significantly newer/older than the embedded one. - (pkg) => pkg.name != 'aft', - ); + final bootstrapPackages = commandPackages.values + .where( + // Skip bootstrap for `aft` since it has already had `dart pub upgrade` + // run with the native command, and running it again with the embedded + // command could cause issues later on, esp. when the native `pub` + // command is significantly newer/older than the embedded one. + (pkg) => pkg.name != 'aft', + ) + .expand((pkg) => [pkg, pkg.example]) + .nonNulls; for (final package in bootstrapPackages) { await pubAction( arguments: [if (upgrade) 'upgrade' else 'get'], package: package, ); } - await Future.wait( - [for (final package in bootstrapPackages) _createEmptyConfig(package)], - ); + await Future.wait([ + for (final package in bootstrapPackages) _createEmptyConfig(package), + ]); if (build) { + final buildPackages = {}; + final packageGraph = repo.getPackageGraph(includeDevDependencies: true); for (final package in bootstrapPackages) { - // Only run build_runner for packages which need it for development, - // i.e. those packages which specify worker JS files in their assets. - final needsBuild = package.needsBuildRunner && - (package.pubspecInfo.pubspec.flutter?.containsKey('assets') ?? - false) && - package.flavor == PackageFlavor.dart; - if (needsBuild) { - await runBuildRunner(package, logger: logger, verbose: verbose); - } + dfs( + packageGraph, + root: package, + (package) { + // Only run build_runner for packages which need it for development, + // i.e. those packages which specify worker JS files in their assets. + final needsBuild = package.needsBuildRunner && + (package.pubspecInfo.pubspec.flutter?.containsKey('assets') ?? + false) && + package.flavor == PackageFlavor.dart; + if (needsBuild) { + buildPackages.add(package); + } + }, + ); + } + for (final package in buildPackages) { + await runBuildRunner(package, logger: logger, verbose: verbose); } } diff --git a/packages/aft/lib/src/commands/generate/generate_workflows_command.dart b/packages/aft/lib/src/commands/generate/generate_workflows_command.dart index 12fdbcad46..20b3b304f0 100644 --- a/packages/aft/lib/src/commands/generate/generate_workflows_command.dart +++ b/packages/aft/lib/src/commands/generate/generate_workflows_command.dart @@ -164,6 +164,7 @@ jobs: test: uses: ./.github/workflows/$analyzeAndTestWorkflow with: + package-name: ${package.name} working-directory: $repoRelativePath ''', ); @@ -175,6 +176,7 @@ jobs: needs: test uses: ./.github/workflows/$nativeWorkflow with: + package-name: ${package.name} working-directory: $repoRelativePath ''', ); @@ -186,11 +188,13 @@ jobs: needs: test uses: ./.github/workflows/$ddcWorkflow with: + package-name: ${package.name} working-directory: $repoRelativePath dart2js_test: needs: test uses: ./.github/workflows/$dart2JsWorkflow with: + package-name: ${package.name} working-directory: $repoRelativePath ''', ); diff --git a/packages/aft/lib/src/models/config.dart b/packages/aft/lib/src/models/config.dart index 6a171f69a8..d565b875a0 100644 --- a/packages/aft/lib/src/models/config.dart +++ b/packages/aft/lib/src/models/config.dart @@ -5,6 +5,7 @@ import 'dart:io'; import 'package:aft/src/changelog/changelog.dart'; import 'package:aft/src/models.dart'; +import 'package:aft/src/repo.dart'; import 'package:aft/src/util.dart'; import 'package:aws_common/aws_common.dart'; import 'package:collection/collection.dart'; @@ -115,7 +116,10 @@ class AftComponent with AWSSerializable>, AWSDebuggable { /// {@endtemplate} @yamlSerializable class PackageInfo - with AWSSerializable>, AWSDebuggable + with + AWSEquatable, + AWSSerializable>, + AWSDebuggable implements Comparable { /// {@macro amplify_tools.package_info} const PackageInfo({ @@ -223,6 +227,32 @@ class PackageInfo p.basename(path).contains('e2e'); } + /// Whether [package] is a direct or transitive dependency of `this`. + bool dependsOn(PackageInfo package, Repo repo) { + var found = false; + dfs( + repo.getPackageGraph(includeDevDependencies: true), + root: this, + (pkg) { + if (pkg == package) found = true; + }, + ); + return found; + } + + /// Whether [package] has `this` as a direct or transitive dependency. + bool isDependedOnBy(PackageInfo package, Repo repo) { + var found = false; + dfs( + repo.getReversedPackageGraph(includeDevDependencies: true), + root: this, + (pkg) { + if (pkg == package) found = true; + }, + ); + return found; + } + /// The parsed `CHANGELOG.md`. Changelog get changelog { final changelogMd = File(p.join(path, 'CHANGELOG.md')).readAsStringSync(); @@ -247,6 +277,9 @@ class PackageInfo flavor == PackageFlavor.flutter; } + @override + List get props => [name]; + @override int compareTo(PackageInfo other) { return path.compareTo(other.path); diff --git a/packages/aft/lib/src/repo.dart b/packages/aft/lib/src/repo.dart index 0245c2a924..0d3ba0139b 100644 --- a/packages/aft/lib/src/repo.dart +++ b/packages/aft/lib/src/repo.dart @@ -90,7 +90,7 @@ class Repo { /// Returns the directed graph of packages to the packages it depends on. /// - /// Will include dev dependencies if [includeDevDependencies] is true. + /// Will include dev dependencies if [includeDevDependencies] is `true`. Map> getPackageGraph({ bool includeDevDependencies = false, }) => @@ -114,8 +114,18 @@ class Repo { /// /// Provides a mapping from each packages to the packages which directly /// depend on it. - late final Map> reversedPackageGraph = () { - final packageGraph = this.packageGraph; + late final Map> reversedPackageGraph = + getReversedPackageGraph(); + + /// Returns the directed graph of packages to the packages which depend on it. + /// + /// Will include dev dependencies if [includeDevDependencies] is `true`. + Map> getReversedPackageGraph({ + bool includeDevDependencies = false, + }) { + final packageGraph = getPackageGraph( + includeDevDependencies: includeDevDependencies, + ); final reversedPackageGraph = >{ for (final package in allPackages.values) package: [], }; @@ -125,7 +135,7 @@ class Repo { } } return UnmodifiableMapView(reversedPackageGraph); - }(); + } /// The git diff between [oldTree] and [newTree]. ///