diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 171df75..f584668 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -1,13 +1,10 @@ -# Created with package:mono_repo v6.2.0 +# Created with package:mono_repo v6.2.2 name: Dart CI on: push: branches: - main - master - pull_request: - schedule: - - cron: "0 0 * * 0" defaults: run: shell: bash @@ -31,82 +28,22 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - name: mono_repo self validate - run: dart pub global activate mono_repo 6.2.0 + run: dart pub global activate mono_repo 6.2.2 - name: mono_repo self validate run: dart pub global run mono_repo generate --validate job_002: - name: "analysis; Dart 2.15.0-268.18.beta; PKG: isolates; `dart analyze --fatal-infos .`" + name: "analysis; Dart dev; PKGS: command_line, enhanced_enums, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, isolates, native_app, null_safety/calculate_lix, parameters, server/google_apis, server/simple; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@v3 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.15.0-268.18.beta;packages:isolates;commands:analyze" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple;commands:analyze" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.15.0-268.18.beta;packages:isolates - os:ubuntu-latest;pub-cache-hosted;sdk:2.15.0-268.18.beta - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - uses: dart-lang/setup-dart@v1.3 - with: - sdk: "2.15.0-268.18.beta" - - id: checkout - uses: actions/checkout@v3.0.0 - - id: isolates_pub_upgrade - name: isolates; dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: isolates - run: dart pub upgrade - - name: "isolates; dart analyze --fatal-infos ." - if: "always() && steps.isolates_pub_upgrade.conclusion == 'success'" - working-directory: isolates - run: dart analyze --fatal-infos . - needs: - - job_001 - job_003: - name: "analysis; Dart 2.15.0-268.18.beta; PKG: isolates; `dart format --output=none --set-exit-if-changed .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@v3 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:2.15.0-268.18.beta;packages:isolates;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:2.15.0-268.18.beta;packages:isolates - os:ubuntu-latest;pub-cache-hosted;sdk:2.15.0-268.18.beta - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - uses: dart-lang/setup-dart@v1.3 - with: - sdk: "2.15.0-268.18.beta" - - id: checkout - uses: actions/checkout@v3.0.0 - - id: isolates_pub_upgrade - name: isolates; dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: isolates - run: dart pub upgrade - - name: "isolates; dart format --output=none --set-exit-if-changed ." - if: "always() && steps.isolates_pub_upgrade.conclusion == 'success'" - working-directory: isolates - run: "dart format --output=none --set-exit-if-changed ." - needs: - - job_001 - job_004: - name: "analysis; Dart dev; PKGS: command_line, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, isolates, native_app, null_safety/calculate_lix, server/google_apis, server/simple; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@v3 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-server/google_apis-server/simple;commands:analyze" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-server/google_apis-server/simple + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest @@ -114,7 +51,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: command_line_pub_upgrade name: command_line; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -124,6 +61,15 @@ jobs: if: "always() && steps.command_line_pub_upgrade.conclusion == 'success'" working-directory: command_line run: dart analyze --fatal-infos . + - id: enhanced_enums_pub_upgrade + name: enhanced_enums; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: enhanced_enums + run: dart pub upgrade + - name: "enhanced_enums; dart analyze --fatal-infos ." + if: "always() && steps.enhanced_enums_pub_upgrade.conclusion == 'success'" + working-directory: enhanced_enums + run: dart analyze --fatal-infos . - id: extension_methods_pub_upgrade name: extension_methods; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -205,6 +151,15 @@ jobs: if: "always() && steps.null_safety_calculate_lix_pub_upgrade.conclusion == 'success'" working-directory: null_safety/calculate_lix run: dart analyze --fatal-infos . + - id: parameters_pub_upgrade + name: parameters; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: parameters + run: dart pub upgrade + - name: "parameters; dart analyze --fatal-infos ." + if: "always() && steps.parameters_pub_upgrade.conclusion == 'success'" + working-directory: parameters + run: dart analyze --fatal-infos . - id: server_google_apis_pub_upgrade name: server/google_apis; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -225,17 +180,17 @@ jobs: run: dart analyze --fatal-infos . needs: - job_001 - job_005: - name: "analysis; Dart dev; PKGS: command_line, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, isolates, native_app, null_safety/calculate_lix, server/google_apis, server/simple; `dart format --output=none --set-exit-if-changed .`" + job_003: + name: "analysis; Dart dev; PKGS: command_line, enhanced_enums, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, isolates, native_app, null_safety/calculate_lix, parameters, server/google_apis, server/simple; `dart format --output=none --set-exit-if-changed .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@v3 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-server/google_apis-server/simple;commands:format" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple;commands:format" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-server/google_apis-server/simple + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple os:ubuntu-latest;pub-cache-hosted;sdk:dev os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest @@ -243,7 +198,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: command_line_pub_upgrade name: command_line; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -253,6 +208,15 @@ jobs: if: "always() && steps.command_line_pub_upgrade.conclusion == 'success'" working-directory: command_line run: "dart format --output=none --set-exit-if-changed ." + - id: enhanced_enums_pub_upgrade + name: enhanced_enums; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: enhanced_enums + run: dart pub upgrade + - name: "enhanced_enums; dart format --output=none --set-exit-if-changed ." + if: "always() && steps.enhanced_enums_pub_upgrade.conclusion == 'success'" + working-directory: enhanced_enums + run: "dart format --output=none --set-exit-if-changed ." - id: extension_methods_pub_upgrade name: extension_methods; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -334,6 +298,15 @@ jobs: if: "always() && steps.null_safety_calculate_lix_pub_upgrade.conclusion == 'success'" working-directory: null_safety/calculate_lix run: "dart format --output=none --set-exit-if-changed ." + - id: parameters_pub_upgrade + name: parameters; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: parameters + run: dart pub upgrade + - name: "parameters; dart format --output=none --set-exit-if-changed ." + if: "always() && steps.parameters_pub_upgrade.conclusion == 'success'" + working-directory: parameters + run: "dart format --output=none --set-exit-if-changed ." - id: server_google_apis_pub_upgrade name: server/google_apis; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -354,17 +327,17 @@ jobs: run: "dart format --output=none --set-exit-if-changed ." needs: - job_001 - job_006: - name: "analysis; Dart stable; PKGS: command_line, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, native_app, null_safety/calculate_lix, server/google_apis, server/simple; `dart analyze --fatal-infos .`" + job_004: + name: "analysis; Dart stable; PKGS: command_line, enhanced_enums, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, isolates, native_app, null_safety/calculate_lix, parameters, server/google_apis, server/simple; `dart analyze --fatal-infos .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@v3 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-native_app-null_safety/calculate_lix-server/google_apis-server/simple;commands:analyze" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple;commands:analyze" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-native_app-null_safety/calculate_lix-server/google_apis-server/simple + os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple os:ubuntu-latest;pub-cache-hosted;sdk:stable os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest @@ -372,7 +345,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: command_line_pub_upgrade name: command_line; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -382,6 +355,15 @@ jobs: if: "always() && steps.command_line_pub_upgrade.conclusion == 'success'" working-directory: command_line run: dart analyze --fatal-infos . + - id: enhanced_enums_pub_upgrade + name: enhanced_enums; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: enhanced_enums + run: dart pub upgrade + - name: "enhanced_enums; dart analyze --fatal-infos ." + if: "always() && steps.enhanced_enums_pub_upgrade.conclusion == 'success'" + working-directory: enhanced_enums + run: dart analyze --fatal-infos . - id: extension_methods_pub_upgrade name: extension_methods; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -436,6 +418,15 @@ jobs: if: "always() && steps.ffi_test_utils_pub_upgrade.conclusion == 'success'" working-directory: ffi/test_utils run: dart analyze --fatal-infos . + - id: isolates_pub_upgrade + name: isolates; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: isolates + run: dart pub upgrade + - name: "isolates; dart analyze --fatal-infos ." + if: "always() && steps.isolates_pub_upgrade.conclusion == 'success'" + working-directory: isolates + run: dart analyze --fatal-infos . - id: native_app_pub_upgrade name: native_app; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -454,6 +445,15 @@ jobs: if: "always() && steps.null_safety_calculate_lix_pub_upgrade.conclusion == 'success'" working-directory: null_safety/calculate_lix run: dart analyze --fatal-infos . + - id: parameters_pub_upgrade + name: parameters; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: parameters + run: dart pub upgrade + - name: "parameters; dart analyze --fatal-infos ." + if: "always() && steps.parameters_pub_upgrade.conclusion == 'success'" + working-directory: parameters + run: dart analyze --fatal-infos . - id: server_google_apis_pub_upgrade name: server/google_apis; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -474,17 +474,17 @@ jobs: run: dart analyze --fatal-infos . needs: - job_001 - job_007: - name: "analysis; Dart stable; PKGS: command_line, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, native_app, null_safety/calculate_lix, server/google_apis, server/simple; `dart format --output=none --set-exit-if-changed .`" + job_005: + name: "analysis; Dart stable; PKGS: command_line, enhanced_enums, extension_methods, ffi/hello_world, ffi/primitives, ffi/structs, ffi/system-command, ffi/test_utils, isolates, native_app, null_safety/calculate_lix, parameters, server/google_apis, server/simple; `dart format --output=none --set-exit-if-changed .`" runs-on: ubuntu-latest steps: - name: Cache Pub hosted dependencies uses: actions/cache@v3 with: path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-native_app-null_safety/calculate_lix-server/google_apis-server/simple;commands:format" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple;commands:format" restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-native_app-null_safety/calculate_lix-server/google_apis-server/simple + os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:command_line-enhanced_enums-extension_methods-ffi/hello_world-ffi/primitives-ffi/structs-ffi/system-command-ffi/test_utils-isolates-native_app-null_safety/calculate_lix-parameters-server/google_apis-server/simple os:ubuntu-latest;pub-cache-hosted;sdk:stable os:ubuntu-latest;pub-cache-hosted os:ubuntu-latest @@ -492,7 +492,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: command_line_pub_upgrade name: command_line; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -502,6 +502,15 @@ jobs: if: "always() && steps.command_line_pub_upgrade.conclusion == 'success'" working-directory: command_line run: "dart format --output=none --set-exit-if-changed ." + - id: enhanced_enums_pub_upgrade + name: enhanced_enums; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: enhanced_enums + run: dart pub upgrade + - name: "enhanced_enums; dart format --output=none --set-exit-if-changed ." + if: "always() && steps.enhanced_enums_pub_upgrade.conclusion == 'success'" + working-directory: enhanced_enums + run: "dart format --output=none --set-exit-if-changed ." - id: extension_methods_pub_upgrade name: extension_methods; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -556,6 +565,15 @@ jobs: if: "always() && steps.ffi_test_utils_pub_upgrade.conclusion == 'success'" working-directory: ffi/test_utils run: "dart format --output=none --set-exit-if-changed ." + - id: isolates_pub_upgrade + name: isolates; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: isolates + run: dart pub upgrade + - name: "isolates; dart format --output=none --set-exit-if-changed ." + if: "always() && steps.isolates_pub_upgrade.conclusion == 'success'" + working-directory: isolates + run: "dart format --output=none --set-exit-if-changed ." - id: native_app_pub_upgrade name: native_app; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -574,6 +592,15 @@ jobs: if: "always() && steps.null_safety_calculate_lix_pub_upgrade.conclusion == 'success'" working-directory: null_safety/calculate_lix run: "dart format --output=none --set-exit-if-changed ." + - id: parameters_pub_upgrade + name: parameters; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: parameters + run: dart pub upgrade + - name: "parameters; dart format --output=none --set-exit-if-changed ." + if: "always() && steps.parameters_pub_upgrade.conclusion == 'success'" + working-directory: parameters + run: "dart format --output=none --set-exit-if-changed ." - id: server_google_apis_pub_upgrade name: server/google_apis; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -594,7 +621,7 @@ jobs: run: "dart format --output=none --set-exit-if-changed ." needs: - job_001 - job_008: + job_006: name: "unit_test; Dart dev; PKG: command_line; `dart test`" runs-on: ubuntu-latest steps: @@ -612,7 +639,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: command_line_pub_upgrade name: command_line; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -628,9 +655,41 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 - job_009: + job_007: + name: "unit_test; Dart dev; PKG: enhanced_enums; `dart test`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@v3 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:enhanced_enums;commands:test" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:enhanced_enums + os:ubuntu-latest;pub-cache-hosted;sdk:dev + os:ubuntu-latest;pub-cache-hosted + os:ubuntu-latest + - uses: dart-lang/setup-dart@v1.3 + with: + sdk: dev + - id: checkout + uses: actions/checkout@v3 + - id: enhanced_enums_pub_upgrade + name: enhanced_enums; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: enhanced_enums + run: dart pub upgrade + - name: enhanced_enums; dart test + if: "always() && steps.enhanced_enums_pub_upgrade.conclusion == 'success'" + working-directory: enhanced_enums + run: dart test + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 + job_008: name: "unit_test; Dart dev; PKG: extension_methods; `dart test`" runs-on: ubuntu-latest steps: @@ -648,7 +707,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: extension_methods_pub_upgrade name: extension_methods; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -664,9 +723,7 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 - job_010: + job_009: name: "unit_test; Dart dev; PKG: ffi/hello_world; `dart test`" runs-on: ubuntu-latest steps: @@ -684,7 +741,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: ffi_hello_world_pub_upgrade name: ffi/hello_world; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -700,9 +757,7 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 - job_011: + job_010: name: "unit_test; Dart dev; PKG: ffi/primitives; `dart test`" runs-on: ubuntu-latest steps: @@ -720,7 +775,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: ffi_primitives_pub_upgrade name: ffi/primitives; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -736,9 +791,7 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 - job_012: + job_011: name: "unit_test; Dart dev; PKG: server/simple; `dart test`" runs-on: ubuntu-latest steps: @@ -756,7 +809,7 @@ jobs: with: sdk: dev - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: server_simple_pub_upgrade name: server/simple; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -772,9 +825,7 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 - job_013: + job_012: name: "unit_test; Dart stable; PKG: command_line; `dart test`" runs-on: ubuntu-latest steps: @@ -792,7 +843,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: command_line_pub_upgrade name: command_line; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -808,8 +859,40 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 + job_013: + name: "unit_test; Dart stable; PKG: enhanced_enums; `dart test`" + runs-on: ubuntu-latest + steps: + - name: Cache Pub hosted dependencies + uses: actions/cache@v3 + with: + path: "~/.pub-cache/hosted" + key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:enhanced_enums;commands:test" + restore-keys: | + os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:enhanced_enums + os:ubuntu-latest;pub-cache-hosted;sdk:stable + os:ubuntu-latest;pub-cache-hosted + os:ubuntu-latest + - uses: dart-lang/setup-dart@v1.3 + with: + sdk: stable + - id: checkout + uses: actions/checkout@v3 + - id: enhanced_enums_pub_upgrade + name: enhanced_enums; dart pub upgrade + if: "always() && steps.checkout.conclusion == 'success'" + working-directory: enhanced_enums + run: dart pub upgrade + - name: enhanced_enums; dart test + if: "always() && steps.enhanced_enums_pub_upgrade.conclusion == 'success'" + working-directory: enhanced_enums + run: dart test + needs: + - job_001 + - job_002 + - job_003 + - job_004 + - job_005 job_014: name: "unit_test; Dart stable; PKG: extension_methods; `dart test`" runs-on: ubuntu-latest @@ -828,7 +911,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: extension_methods_pub_upgrade name: extension_methods; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -844,8 +927,6 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 job_015: name: "unit_test; Dart stable; PKG: ffi/hello_world; `dart test`" runs-on: ubuntu-latest @@ -864,7 +945,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: ffi_hello_world_pub_upgrade name: ffi/hello_world; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -880,8 +961,6 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 job_016: name: "unit_test; Dart stable; PKG: ffi/primitives; `dart test`" runs-on: ubuntu-latest @@ -900,7 +979,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: ffi_primitives_pub_upgrade name: ffi/primitives; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -916,8 +995,6 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 job_017: name: "unit_test; Dart stable; PKG: server/simple; `dart test`" runs-on: ubuntu-latest @@ -936,7 +1013,7 @@ jobs: with: sdk: stable - id: checkout - uses: actions/checkout@v3.0.0 + uses: actions/checkout@v3 - id: server_simple_pub_upgrade name: server/simple; dart pub upgrade if: "always() && steps.checkout.conclusion == 'success'" @@ -952,5 +1029,3 @@ jobs: - job_003 - job_004 - job_005 - - job_006 - - job_007 diff --git a/command_line/mono_pkg.yaml b/command_line/mono_pkg.yaml index acf790d..c6782f6 100644 --- a/command_line/mono_pkg.yaml +++ b/command_line/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/command_line/pubspec.yaml b/command_line/pubspec.yaml index 5d7ae46..3ae72e0 100644 --- a/command_line/pubspec.yaml +++ b/command_line/pubspec.yaml @@ -12,13 +12,13 @@ environment: dependencies: args: ^2.0.0 build_cli_annotations: ^2.0.0 - github: ^8.0.1 + github: ^9.2.0 intl: ^0.17.0 dev_dependencies: build_cli: ^2.0.0 build_runner: ^2.0.6 - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.6.0 executables: diff --git a/enhanced_enums/.gitignore b/enhanced_enums/.gitignore index 3c8a157..31b5269 100644 --- a/enhanced_enums/.gitignore +++ b/enhanced_enums/.gitignore @@ -1,6 +1,5 @@ -# Files and directories created by pub. .dart_tool/ .packages - -# Conventional directory for build output. +pubspec.lock build/ +doc/api/ diff --git a/enhanced_enums/mono_pkg.yaml b/enhanced_enums/mono_pkg.yaml new file mode 100644 index 0000000..c6782f6 --- /dev/null +++ b/enhanced_enums/mono_pkg.yaml @@ -0,0 +1,10 @@ +sdk: + - stable + - dev + +stages: + - analysis: + - analyze: --fatal-infos . + - format + - unit_test: + - test diff --git a/enhanced_enums/pubspec.yaml b/enhanced_enums/pubspec.yaml index 19bf73f..fca1bf2 100644 --- a/enhanced_enums/pubspec.yaml +++ b/enhanced_enums/pubspec.yaml @@ -8,5 +8,5 @@ environment: sdk: '>=2.17.0-182.1.beta <3.0.0' dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 diff --git a/extension_methods/mono_pkg.yaml b/extension_methods/mono_pkg.yaml index acf790d..c6782f6 100644 --- a/extension_methods/mono_pkg.yaml +++ b/extension_methods/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/extension_methods/pubspec.yaml b/extension_methods/pubspec.yaml index 94fca72..2ff7b2e 100644 --- a/extension_methods/pubspec.yaml +++ b/extension_methods/pubspec.yaml @@ -9,5 +9,5 @@ environment: sdk: ">=2.12.0 <3.0.0" dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.6.0 diff --git a/ffi/hello_world/hello.dart b/ffi/hello_world/hello.dart index 1644c70..47323ef 100644 --- a/ffi/hello_world/hello.dart +++ b/ffi/hello_world/hello.dart @@ -16,10 +16,12 @@ void main() { // Open the dynamic library var libraryPath = path.join(Directory.current.path, 'hello_library', 'libhello.so'); + if (Platform.isMacOS) { libraryPath = path.join(Directory.current.path, 'hello_library', 'libhello.dylib'); } + if (Platform.isWindows) { libraryPath = path.join( Directory.current.path, 'hello_library', 'Debug', 'hello.dll'); diff --git a/ffi/hello_world/mono_pkg.yaml b/ffi/hello_world/mono_pkg.yaml index dd13124..45587b7 100644 --- a/ffi/hello_world/mono_pkg.yaml +++ b/ffi/hello_world/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/ffi/hello_world/pubspec.yaml b/ffi/hello_world/pubspec.yaml index bff910b..c7eab18 100644 --- a/ffi/hello_world/pubspec.yaml +++ b/ffi/hello_world/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: path: ^1.8.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 # test_utils depends on code elsewhere in the samples repository. # You can reference it for useful cross-platform testing functionality diff --git a/ffi/primitives/mono_pkg.yaml b/ffi/primitives/mono_pkg.yaml index dd13124..45587b7 100644 --- a/ffi/primitives/mono_pkg.yaml +++ b/ffi/primitives/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/ffi/primitives/pubspec.yaml b/ffi/primitives/pubspec.yaml index 95836de..d956e77 100644 --- a/ffi/primitives/pubspec.yaml +++ b/ffi/primitives/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: path: ^1.8.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 # test_utils depends on code elsewhere in the samples repository. # You can reference it for useful cross-platform testing functionality diff --git a/ffi/structs/mono_pkg.yaml b/ffi/structs/mono_pkg.yaml index 769642b..c62ca6f 100644 --- a/ffi/structs/mono_pkg.yaml +++ b/ffi/structs/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/ffi/structs/pubspec.yaml b/ffi/structs/pubspec.yaml index acd8522..a8b75d5 100644 --- a/ffi/structs/pubspec.yaml +++ b/ffi/structs/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: path: ^1.8.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 # test_utils depends on code elsewhere in the samples repository. # You can reference it for useful cross-platform testing functionality diff --git a/ffi/system-command/mono_pkg.yaml b/ffi/system-command/mono_pkg.yaml index 769642b..c62ca6f 100644 --- a/ffi/system-command/mono_pkg.yaml +++ b/ffi/system-command/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/ffi/system-command/pubspec.yaml b/ffi/system-command/pubspec.yaml index 78750eb..c7f10f0 100644 --- a/ffi/system-command/pubspec.yaml +++ b/ffi/system-command/pubspec.yaml @@ -11,5 +11,5 @@ dependencies: ffi: ^1.0.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 diff --git a/ffi/test_utils/mono_pkg.yaml b/ffi/test_utils/mono_pkg.yaml index 769642b..c62ca6f 100644 --- a/ffi/test_utils/mono_pkg.yaml +++ b/ffi/test_utils/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/ffi/test_utils/pubspec.yaml b/ffi/test_utils/pubspec.yaml index e8ac9df..effa127 100644 --- a/ffi/test_utils/pubspec.yaml +++ b/ffi/test_utils/pubspec.yaml @@ -10,4 +10,4 @@ dependencies: path: ^1.8.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 diff --git a/isolates/mono_pkg.yaml b/isolates/mono_pkg.yaml index 9ea8d59..c62ca6f 100644 --- a/isolates/mono_pkg.yaml +++ b/isolates/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: + - stable - dev - - 2.15.0-268.18.beta stages: - analysis: diff --git a/isolates/pubspec.yaml b/isolates/pubspec.yaml index 4e3b413..19b58e1 100644 --- a/isolates/pubspec.yaml +++ b/isolates/pubspec.yaml @@ -9,5 +9,5 @@ environment: sdk: '>=2.15.0-268.18.beta <3.0.0' dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 diff --git a/mono_repo.yaml b/mono_repo.yaml index d69e817..f235485 100644 --- a/mono_repo.yaml +++ b/mono_repo.yaml @@ -2,7 +2,11 @@ # that everything is up to date self_validate: true github: - cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.” + on: + push: + branches: + - main + - master # Merges all analyze stages into one bot, which is more efficient merge_stages: diff --git a/native_app/mono_pkg.yaml b/native_app/mono_pkg.yaml index 769642b..c62ca6f 100644 --- a/native_app/mono_pkg.yaml +++ b/native_app/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/native_app/pubspec.yaml b/native_app/pubspec.yaml index b33f1dd..a7e8a7e 100644 --- a/native_app/pubspec.yaml +++ b/native_app/pubspec.yaml @@ -10,7 +10,7 @@ environment: sdk: ">=2.12.0 <3.0.0" dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 executables: main: hello_world diff --git a/null_safety/calculate_lix/.gitignore b/null_safety/calculate_lix/.gitignore index 4de48e3..1cbc115 100644 --- a/null_safety/calculate_lix/.gitignore +++ b/null_safety/calculate_lix/.gitignore @@ -1,3 +1,5 @@ +pubspec.lock + # Files and directories used by the Dart SDK .dart_tool/ .packages diff --git a/null_safety/calculate_lix/mono_pkg.yaml b/null_safety/calculate_lix/mono_pkg.yaml index 769642b..c62ca6f 100644 --- a/null_safety/calculate_lix/mono_pkg.yaml +++ b/null_safety/calculate_lix/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/null_safety/calculate_lix/pubspec.lock b/null_safety/calculate_lix/pubspec.lock deleted file mode 100644 index dbaf981..0000000 --- a/null_safety/calculate_lix/pubspec.lock +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - collection: - dependency: "direct main" - description: - name: collection - url: "https://pub.dartlang.org" - source: hosted - version: "1.15.0" - lints: - dependency: "direct dev" - description: - name: lints - url: "https://pub.dartlang.org" - source: hosted - version: "1.0.1" -sdks: - dart: ">=2.12.0 <3.0.0" diff --git a/null_safety/calculate_lix/pubspec.yaml b/null_safety/calculate_lix/pubspec.yaml index 17c3ccb..a8971be 100644 --- a/null_safety/calculate_lix/pubspec.yaml +++ b/null_safety/calculate_lix/pubspec.yaml @@ -12,4 +12,4 @@ dependencies: collection: ^1.15.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 diff --git a/parameters/mono_pkg.yaml b/parameters/mono_pkg.yaml new file mode 100644 index 0000000..c62ca6f --- /dev/null +++ b/parameters/mono_pkg.yaml @@ -0,0 +1,8 @@ +sdk: + - stable + - dev + +stages: + - analysis: + - analyze: --fatal-infos . + - format diff --git a/parameters/pubspec.yaml b/parameters/pubspec.yaml index 3e0f8d2..43d226b 100644 --- a/parameters/pubspec.yaml +++ b/parameters/pubspec.yaml @@ -8,5 +8,5 @@ environment: sdk: '>=2.17.0-182.1.beta <3.0.0' dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.16.0 diff --git a/server/google_apis/mono_pkg.yaml b/server/google_apis/mono_pkg.yaml index 035c8c0..28dafeb 100644 --- a/server/google_apis/mono_pkg.yaml +++ b/server/google_apis/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/server/google_apis/pubspec.yaml b/server/google_apis/pubspec.yaml index ddb3790..940708c 100644 --- a/server/google_apis/pubspec.yaml +++ b/server/google_apis/pubspec.yaml @@ -9,6 +9,7 @@ dependencies: googleapis_auth: ^1.1.0 shelf: ^1.0.0 shelf_router: ^1.0.0 + http: ^0.13.0 dev_dependencies: - lints: ^1.0.0 + lints: ^2.0.0 diff --git a/server/simple/mono_pkg.yaml b/server/simple/mono_pkg.yaml index acf790d..c6782f6 100644 --- a/server/simple/mono_pkg.yaml +++ b/server/simple/mono_pkg.yaml @@ -1,6 +1,6 @@ sdk: - - dev - stable + - dev stages: - analysis: diff --git a/server/simple/pubspec.yaml b/server/simple/pubspec.yaml index 180b317..88e19f4 100644 --- a/server/simple/pubspec.yaml +++ b/server/simple/pubspec.yaml @@ -11,6 +11,6 @@ dependencies: dev_dependencies: http: ^0.13.0 - lints: ^1.0.0 + lints: ^2.0.0 test: ^1.15.0 test_process: ^2.0.0 diff --git a/tool/ci.sh b/tool/ci.sh index fbe55a8..2ffad99 100755 --- a/tool/ci.sh +++ b/tool/ci.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Created with package:mono_repo v6.2.0 +# Created with package:mono_repo v6.2.2 # Support built in commands on windows out of the box. # When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")