From 274ff5a13e2d8d70711ad71dda414989a5b391b4 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 12:28:15 +0200 Subject: [PATCH 1/8] Correctly pin wakelock_windows override --- packages/app/pubspec.lock | 6 +++--- packages/app/pubspec.yaml | 4 ++-- packages/app/pubspec_overrides.yaml | 4 ++-- packages/neon/neon/pubspec.yaml | 4 ++-- packages/neon/neon/pubspec_overrides.yaml | 4 ++-- packages/neon/neon_news/pubspec.yaml | 4 ++-- packages/neon/neon_news/pubspec_overrides.yaml | 4 ++-- packages/neon/neon_notes/pubspec.yaml | 4 ++-- packages/neon/neon_notes/pubspec_overrides.yaml | 4 ++-- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/packages/app/pubspec.lock b/packages/app/pubspec.lock index 737dec96..a7eb10d4 100644 --- a/packages/app/pubspec.lock +++ b/packages/app/pubspec.lock @@ -1268,9 +1268,9 @@ packages: dependency: "direct overridden" description: path: wakelock_windows - ref: "094b4a74c31e547c11525bcc050dbd06b02a1f67" - resolved-ref: "094b4a74c31e547c11525bcc050dbd06b02a1f67" - url: "https://github.com/creativecreatorormaybenot/wakelock" + ref: "269e1dba6bca6975a0bc44da6a42e56ca7428da9" + resolved-ref: "269e1dba6bca6975a0bc44da6a42e56ca7428da9" + url: "https://github.com/fikretonuresen/wakelock" source: git version: "0.2.2" webdriver: diff --git a/packages/app/pubspec.yaml b/packages/app/pubspec.yaml index 65384be1..6e138a2a 100644 --- a/packages/app/pubspec.yaml +++ b/packages/app/pubspec.yaml @@ -47,9 +47,9 @@ dev_dependencies: dependency_overrides: wakelock_windows: # TODO: https://github.com/creativecreatorormaybenot/wakelock/pull/195 git: - url: https://github.com/creativecreatorormaybenot/wakelock + url: https://github.com/fikretonuresen/wakelock path: wakelock_windows - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 flutter: uses-material-design: true diff --git a/packages/app/pubspec_overrides.yaml b/packages/app/pubspec_overrides.yaml index 53dae8cd..8c41a58d 100644 --- a/packages/app/pubspec_overrides.yaml +++ b/packages/app/pubspec_overrides.yaml @@ -22,6 +22,6 @@ dependency_overrides: path: ../sort_box wakelock_windows: git: - url: https://github.com/creativecreatorormaybenot/wakelock - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + url: https://github.com/fikretonuresen/wakelock + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 path: wakelock_windows diff --git a/packages/neon/neon/pubspec.yaml b/packages/neon/neon/pubspec.yaml index 8d0b84aa..e6b18cd3 100644 --- a/packages/neon/neon/pubspec.yaml +++ b/packages/neon/neon/pubspec.yaml @@ -70,9 +70,9 @@ dev_dependencies: dependency_overrides: wakelock_windows: # TODO: https://github.com/creativecreatorormaybenot/wakelock/pull/195 git: - url: https://github.com/creativecreatorormaybenot/wakelock + url: https://github.com/fikretonuresen/wakelock path: wakelock_windows - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 flutter: uses-material-design: true diff --git a/packages/neon/neon/pubspec_overrides.yaml b/packages/neon/neon/pubspec_overrides.yaml index 9889317e..13ab86cb 100644 --- a/packages/neon/neon/pubspec_overrides.yaml +++ b/packages/neon/neon/pubspec_overrides.yaml @@ -10,6 +10,6 @@ dependency_overrides: path: ../../sort_box wakelock_windows: git: - url: https://github.com/creativecreatorormaybenot/wakelock - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + url: https://github.com/fikretonuresen/wakelock + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 path: wakelock_windows diff --git a/packages/neon/neon_news/pubspec.yaml b/packages/neon/neon_news/pubspec.yaml index 57985c03..4a999997 100644 --- a/packages/neon/neon_news/pubspec.yaml +++ b/packages/neon/neon_news/pubspec.yaml @@ -44,9 +44,9 @@ dev_dependencies: dependency_overrides: wakelock_windows: # TODO: https://github.com/creativecreatorormaybenot/wakelock/pull/195 git: - url: https://github.com/creativecreatorormaybenot/wakelock + url: https://github.com/fikretonuresen/wakelock path: wakelock_windows - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 flutter: uses-material-design: true diff --git a/packages/neon/neon_news/pubspec_overrides.yaml b/packages/neon/neon_news/pubspec_overrides.yaml index 770fa63e..fde2996c 100644 --- a/packages/neon/neon_news/pubspec_overrides.yaml +++ b/packages/neon/neon_news/pubspec_overrides.yaml @@ -12,6 +12,6 @@ dependency_overrides: path: ../../sort_box wakelock_windows: git: - url: https://github.com/creativecreatorormaybenot/wakelock - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + url: https://github.com/fikretonuresen/wakelock + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 path: wakelock_windows diff --git a/packages/neon/neon_notes/pubspec.yaml b/packages/neon/neon_notes/pubspec.yaml index 11248458..04cba12e 100644 --- a/packages/neon/neon_notes/pubspec.yaml +++ b/packages/neon/neon_notes/pubspec.yaml @@ -44,9 +44,9 @@ dev_dependencies: dependency_overrides: wakelock_windows: # TODO: https://github.com/creativecreatorormaybenot/wakelock/pull/195 git: - url: https://github.com/creativecreatorormaybenot/wakelock + url: https://github.com/fikretonuresen/wakelock path: wakelock_windows - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 flutter: uses-material-design: true diff --git a/packages/neon/neon_notes/pubspec_overrides.yaml b/packages/neon/neon_notes/pubspec_overrides.yaml index 770fa63e..fde2996c 100644 --- a/packages/neon/neon_notes/pubspec_overrides.yaml +++ b/packages/neon/neon_notes/pubspec_overrides.yaml @@ -12,6 +12,6 @@ dependency_overrides: path: ../../sort_box wakelock_windows: git: - url: https://github.com/creativecreatorormaybenot/wakelock - ref: 094b4a74c31e547c11525bcc050dbd06b02a1f67 + url: https://github.com/fikretonuresen/wakelock + ref: 269e1dba6bca6975a0bc44da6a42e56ca7428da9 path: wakelock_windows From e8caf36d6b821551e81633368dd52b3c4a150ba4 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 15:30:54 +0200 Subject: [PATCH 2/8] tool: Rename install script to setup --- tool/{install.sh => setup.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tool/{install.sh => setup.sh} (100%) diff --git a/tool/install.sh b/tool/setup.sh similarity index 100% rename from tool/install.sh rename to tool/setup.sh From 9ae7a28ac14ee4b5f63828192c280354cb4386f0 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 15:30:33 +0200 Subject: [PATCH 3/8] tool: Stop setting up git submodules --- tool/setup.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/tool/setup.sh b/tool/setup.sh index 0168dbc9..95eb2924 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -2,8 +2,6 @@ set -euxo pipefail cd "$(dirname "$0")/.." -git submodule init -git submodule update dart pub global activate melos 3.0.1 dart pub global activate mono_repo 6.5.6 dart pub global activate fvm 2.4.1 From de3c972e773bb6e991b9fe502122d1e63c2a2c76 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 15:21:48 +0200 Subject: [PATCH 4/8] tool: Fix broken pipe when installing flutter --- tool/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/setup.sh b/tool/setup.sh index 95eb2924..42af0761 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -5,5 +5,5 @@ cd "$(dirname "$0")/.." dart pub global activate melos 3.0.1 dart pub global activate mono_repo 6.5.6 dart pub global activate fvm 2.4.1 -yes | fvm install +echo "y" | fvm install fvm exec mono_repo pub get From 3eaeb4586f98bdb260cadc3573eb9172392d3ef7 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 15:27:50 +0200 Subject: [PATCH 5/8] tool: Use single job for pub get to avoid failure --- tool/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/setup.sh b/tool/setup.sh index 42af0761..5d6158a4 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -6,4 +6,4 @@ dart pub global activate melos 3.0.1 dart pub global activate mono_repo 6.5.6 dart pub global activate fvm 2.4.1 echo "y" | fvm install -fvm exec mono_repo pub get +melos exec --concurrency=1 flutter pub get From 3460930f21e8805981045705322f4179f4076021 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 16:28:30 +0200 Subject: [PATCH 6/8] tool: Update melos --- pubspec.yaml | 2 +- tool/setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index ddcea5b6..240c24d3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,5 +5,5 @@ environment: sdk: '>=3.0.0 <4.0.0' dev_dependencies: fvm: ^2.4.1 - melos: ^3.0.1 + melos: ^3.1.0 mono_repo: ^6.5.6 diff --git a/tool/setup.sh b/tool/setup.sh index 5d6158a4..5f3da6ce 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -2,7 +2,7 @@ set -euxo pipefail cd "$(dirname "$0")/.." -dart pub global activate melos 3.0.1 +dart pub global activate melos 3.1.0 dart pub global activate mono_repo 6.5.6 dart pub global activate fvm 2.4.1 echo "y" | fvm install From 166cf108e80e2c06ca843833a33f7c7a6e778324 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 14:27:59 +0200 Subject: [PATCH 7/8] tool: Add melos scripts for CI --- melos.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/melos.yaml b/melos.yaml index 705b369e..50d3d8c6 100644 --- a/melos.yaml +++ b/melos.yaml @@ -17,3 +17,8 @@ packages: ide: intellij: enabled: false + +scripts: + format-check: dart format --output=none --set-exit-if-changed --line-length 120 . + analyze: dart analyze --fatal-infos . + test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test" From 7a99c00eb4ff9f702af9a4952b1e4b692671e88d Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 20 Jun 2023 16:33:27 +0200 Subject: [PATCH 8/8] tool,ci: Use custom CI --- .github/workflows/dart.yml | 969 +----------------- packages/app/mono_pkg.yaml | 7 - packages/dynamite/dynamite/mono_pkg.yaml | 7 - .../dynamite/dynamite_runtime/mono_pkg.yaml | 7 - packages/file_icons/mono_pkg.yaml | 7 - packages/neon/neon/mono_pkg.yaml | 8 - packages/neon/neon_files/mono_pkg.yaml | 7 - packages/neon/neon_news/mono_pkg.yaml | 7 - packages/neon/neon_notes/mono_pkg.yaml | 7 - .../neon/neon_notifications/mono_pkg.yaml | 7 - packages/nextcloud/mono_pkg.yaml | 8 - packages/settings/mono_pkg.yaml | 7 - packages/sort_box/mono_pkg.yaml | 8 - packages/spec_templates/mono_pkg.yaml | 7 - pubspec.yaml | 1 - tool/ci.sh | 123 --- tool/setup.sh | 1 - tool/update.sh | 6 +- 18 files changed, 23 insertions(+), 1171 deletions(-) delete mode 100644 packages/app/mono_pkg.yaml delete mode 100644 packages/dynamite/dynamite/mono_pkg.yaml delete mode 100644 packages/dynamite/dynamite_runtime/mono_pkg.yaml delete mode 100644 packages/file_icons/mono_pkg.yaml delete mode 100644 packages/neon/neon/mono_pkg.yaml delete mode 100644 packages/neon/neon_files/mono_pkg.yaml delete mode 100644 packages/neon/neon_news/mono_pkg.yaml delete mode 100644 packages/neon/neon_notes/mono_pkg.yaml delete mode 100644 packages/neon/neon_notifications/mono_pkg.yaml delete mode 100644 packages/nextcloud/mono_pkg.yaml delete mode 100644 packages/settings/mono_pkg.yaml delete mode 100644 packages/sort_box/mono_pkg.yaml delete mode 100644 packages/spec_templates/mono_pkg.yaml delete mode 100755 tool/ci.sh diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index de6bf129..6f44bacb 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -1,4 +1,3 @@ -# Created with package:mono_repo v6.5.6 name: Dart CI on: push: @@ -13,954 +12,26 @@ env: permissions: read-all jobs: - job_001: - name: mono_repo self validate + dart-ci: + name: Dart CI runs-on: ubuntu-latest steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 + - name: Cache dependencies + uses: actions/cache@v3 with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - name: mono_repo self validate - run: dart pub global activate mono_repo 6.5.6 - - name: mono_repo self validate - run: dart pub global run mono_repo generate --validate - job_002: - name: "all; PKG: packages/app; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/app;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/app - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_app_pub_upgrade - name: packages/app; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/app - - name: "packages/app; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_app_pub_upgrade.conclusion == 'success'" - working-directory: packages/app - needs: - - job_001 - job_003: - name: "all; PKG: packages/dynamite/dynamite; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_dynamite_dynamite_pub_upgrade - name: packages/dynamite/dynamite; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/dynamite/dynamite - - name: "packages/dynamite/dynamite; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_dynamite_dynamite_pub_upgrade.conclusion == 'success'" - working-directory: packages/dynamite/dynamite - needs: - - job_001 - job_004: - name: "all; PKG: packages/dynamite/dynamite_runtime; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite_runtime;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite_runtime - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_dynamite_dynamite_runtime_pub_upgrade - name: packages/dynamite/dynamite_runtime; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/dynamite/dynamite_runtime - - name: "packages/dynamite/dynamite_runtime; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_dynamite_dynamite_runtime_pub_upgrade.conclusion == 'success'" - working-directory: packages/dynamite/dynamite_runtime - needs: - - job_001 - job_005: - name: "all; PKG: packages/file_icons; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/file_icons;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/file_icons - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_file_icons_pub_upgrade - name: packages/file_icons; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/file_icons - - name: "packages/file_icons; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_file_icons_pub_upgrade.conclusion == 'success'" - working-directory: packages/file_icons - needs: - - job_001 - job_006: - name: "all; PKG: packages/neon/neon; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_pub_upgrade - name: packages/neon/neon; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon - - name: "packages/neon/neon; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_neon_neon_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon - needs: - - job_001 - job_007: - name: "all; PKG: packages/neon/neon_files; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_files;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_files - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_files_pub_upgrade - name: packages/neon/neon_files; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_files - - name: "packages/neon/neon_files; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_neon_neon_files_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_files - needs: - - job_001 - job_008: - name: "all; PKG: packages/neon/neon_news; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_news;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_news - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_news_pub_upgrade - name: packages/neon/neon_news; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_news - - name: "packages/neon/neon_news; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_neon_neon_news_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_news - needs: - - job_001 - job_009: - name: "all; PKG: packages/neon/neon_notes; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notes;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notes - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_notes_pub_upgrade - name: packages/neon/neon_notes; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_notes - - name: "packages/neon/neon_notes; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_neon_neon_notes_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_notes - needs: - - job_001 - job_010: - name: "all; PKG: packages/neon/neon_notifications; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notifications;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notifications - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_notifications_pub_upgrade - name: packages/neon/neon_notifications; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_notifications - - name: "packages/neon/neon_notifications; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_neon_neon_notifications_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_notifications - needs: - - job_001 - job_011: - name: "all; PKG: packages/nextcloud; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/nextcloud;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/nextcloud - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_nextcloud_pub_upgrade - name: packages/nextcloud; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/nextcloud - - name: "packages/nextcloud; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_nextcloud_pub_upgrade.conclusion == 'success'" - working-directory: packages/nextcloud - needs: - - job_001 - job_012: - name: "all; PKG: packages/settings; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/settings;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/settings - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_settings_pub_upgrade - name: packages/settings; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/settings - - name: "packages/settings; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_settings_pub_upgrade.conclusion == 'success'" - working-directory: packages/settings - needs: - - job_001 - job_013: - name: "all; PKG: packages/sort_box; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/sort_box;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/sort_box - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_sort_box_pub_upgrade - name: packages/sort_box; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/sort_box - - name: "packages/sort_box; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_sort_box_pub_upgrade.conclusion == 'success'" - working-directory: packages/sort_box - needs: - - job_001 - job_014: - name: "all; PKG: packages/spec_templates; `dart format --output=none --set-exit-if-changed --line-length 120 .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/spec_templates;commands:format" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/spec_templates - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_spec_templates_pub_upgrade - name: packages/spec_templates; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/spec_templates - - name: "packages/spec_templates; dart format --output=none --set-exit-if-changed --line-length 120 ." - run: "dart format --output=none --set-exit-if-changed --line-length 120 ." - if: "always() && steps.packages_spec_templates_pub_upgrade.conclusion == 'success'" - working-directory: packages/spec_templates - needs: - - job_001 - job_015: - name: "all; PKG: packages/app; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/app;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/app - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_app_pub_upgrade - name: packages/app; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/app - - name: "packages/app; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_app_pub_upgrade.conclusion == 'success'" - working-directory: packages/app - needs: - - job_001 - job_016: - name: "all; PKG: packages/file_icons; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/file_icons;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/file_icons - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_file_icons_pub_upgrade - name: packages/file_icons; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/file_icons - - name: "packages/file_icons; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_file_icons_pub_upgrade.conclusion == 'success'" - working-directory: packages/file_icons - needs: - - job_001 - job_017: - name: "all; PKG: packages/neon/neon; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_pub_upgrade - name: packages/neon/neon; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon - - name: "packages/neon/neon; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_neon_neon_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon - needs: - - job_001 - job_018: - name: "all; PKG: packages/neon/neon_files; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_files;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_files - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_files_pub_upgrade - name: packages/neon/neon_files; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_files - - name: "packages/neon/neon_files; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_neon_neon_files_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_files - needs: - - job_001 - job_019: - name: "all; PKG: packages/neon/neon_news; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_news;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_news - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_news_pub_upgrade - name: packages/neon/neon_news; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_news - - name: "packages/neon/neon_news; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_neon_neon_news_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_news - needs: - - job_001 - job_020: - name: "all; PKG: packages/neon/neon_notes; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notes;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notes - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_notes_pub_upgrade - name: packages/neon/neon_notes; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_notes - - name: "packages/neon/neon_notes; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_neon_neon_notes_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_notes - needs: - - job_001 - job_021: - name: "all; PKG: packages/neon/neon_notifications; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notifications;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon_notifications - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_notifications_pub_upgrade - name: packages/neon/neon_notifications; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon_notifications - - name: "packages/neon/neon_notifications; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_neon_neon_notifications_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon_notifications - needs: - - job_001 - job_022: - name: "all; PKG: packages/settings; `flutter analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/settings;commands:analyze_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/settings - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_settings_pub_upgrade - name: packages/settings; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/settings - - name: "packages/settings; flutter analyze --fatal-infos ." - run: flutter analyze --fatal-infos . - if: "always() && steps.packages_settings_pub_upgrade.conclusion == 'success'" - working-directory: packages/settings - needs: - - job_001 - job_023: - name: "all; PKG: packages/dynamite/dynamite; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_dynamite_dynamite_pub_upgrade - name: packages/dynamite/dynamite; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/dynamite/dynamite - - name: "packages/dynamite/dynamite; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.packages_dynamite_dynamite_pub_upgrade.conclusion == 'success'" - working-directory: packages/dynamite/dynamite - needs: - - job_001 - job_024: - name: "all; PKG: packages/dynamite/dynamite_runtime; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite_runtime;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/dynamite/dynamite_runtime - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_dynamite_dynamite_runtime_pub_upgrade - name: packages/dynamite/dynamite_runtime; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/dynamite/dynamite_runtime - - name: "packages/dynamite/dynamite_runtime; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.packages_dynamite_dynamite_runtime_pub_upgrade.conclusion == 'success'" - working-directory: packages/dynamite/dynamite_runtime - needs: - - job_001 - job_025: - name: "all; PKG: packages/nextcloud; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/nextcloud;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/nextcloud - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_nextcloud_pub_upgrade - name: packages/nextcloud; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/nextcloud - - name: "packages/nextcloud; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.packages_nextcloud_pub_upgrade.conclusion == 'success'" - working-directory: packages/nextcloud - needs: - - job_001 - job_026: - name: "all; PKG: packages/sort_box; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/sort_box;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/sort_box - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_sort_box_pub_upgrade - name: packages/sort_box; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/sort_box - - name: "packages/sort_box; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.packages_sort_box_pub_upgrade.conclusion == 'success'" - working-directory: packages/sort_box - needs: - - job_001 - job_027: - name: "all; PKG: packages/spec_templates; `dart analyze --fatal-infos .`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/spec_templates;commands:analyze_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/spec_templates - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_spec_templates_pub_upgrade - name: packages/spec_templates; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/spec_templates - - name: "packages/spec_templates; dart analyze --fatal-infos ." - run: dart analyze --fatal-infos . - if: "always() && steps.packages_spec_templates_pub_upgrade.conclusion == 'success'" - working-directory: packages/spec_templates - needs: - - job_001 - job_028: - name: "all; PKG: packages/neon/neon; `flutter test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon;commands:test_0" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/neon/neon - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Flutter SDK - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa - with: - channel: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_neon_neon_pub_upgrade - name: packages/neon/neon; flutter pub upgrade - run: flutter pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/neon/neon - - name: packages/neon/neon; flutter test - run: flutter test - if: "always() && steps.packages_neon_neon_pub_upgrade.conclusion == 'success'" - working-directory: packages/neon/neon - needs: - - job_001 - job_029: - name: "all; PKG: packages/nextcloud; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/nextcloud;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/nextcloud - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_nextcloud_pub_upgrade - name: packages/nextcloud; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/nextcloud - - name: packages/nextcloud; dart test - run: dart test - if: "always() && steps.packages_nextcloud_pub_upgrade.conclusion == 'success'" - working-directory: packages/nextcloud - needs: - - job_001 - job_030: - name: "all; PKG: packages/sort_box; `dart test`" - runs-on: ubuntu-latest - steps: - - name: Cache Pub hosted dependencies - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 - with: - path: "~/.pub-cache/hosted" - key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/sort_box;commands:test_1" - restore-keys: | - os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:packages/sort_box - os:ubuntu-latest;pub-cache-hosted;sdk:stable - os:ubuntu-latest;pub-cache-hosted - os:ubuntu-latest - - name: Setup Dart SDK - uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f - with: - sdk: stable - - id: checkout - name: Checkout repository - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - - id: packages_sort_box_pub_upgrade - name: packages/sort_box; dart pub upgrade - run: dart pub upgrade - if: "always() && steps.checkout.conclusion == 'success'" - working-directory: packages/sort_box - - name: packages/sort_box; dart test - run: dart test - if: "always() && steps.packages_sort_box_pub_upgrade.conclusion == 'success'" - working-directory: packages/sort_box - needs: - - job_001 + path: ~/.pub-cache/hosted + key: dart-ci + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dart + uses: dart-lang/setup-dart@v1 + - name: Setup + run: ./tool/setup.sh + + - name: Check formatting + run: melos run format-check + - name: Lint code + run: melos run analyze + - name: Run tests + run: melos run test diff --git a/packages/app/mono_pkg.yaml b/packages/app/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/app/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/dynamite/dynamite/mono_pkg.yaml b/packages/dynamite/dynamite/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/dynamite/dynamite/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/dynamite/dynamite_runtime/mono_pkg.yaml b/packages/dynamite/dynamite_runtime/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/dynamite/dynamite_runtime/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/file_icons/mono_pkg.yaml b/packages/file_icons/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/file_icons/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/neon/neon/mono_pkg.yaml b/packages/neon/neon/mono_pkg.yaml deleted file mode 100644 index a6c495b0..00000000 --- a/packages/neon/neon/mono_pkg.yaml +++ /dev/null @@ -1,8 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . - - test diff --git a/packages/neon/neon_files/mono_pkg.yaml b/packages/neon/neon_files/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/neon/neon_files/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/neon/neon_news/mono_pkg.yaml b/packages/neon/neon_news/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/neon/neon_news/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/neon/neon_notes/mono_pkg.yaml b/packages/neon/neon_notes/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/neon/neon_notes/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/neon/neon_notifications/mono_pkg.yaml b/packages/neon/neon_notifications/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/neon/neon_notifications/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/nextcloud/mono_pkg.yaml b/packages/nextcloud/mono_pkg.yaml deleted file mode 100644 index c7b572cc..00000000 --- a/packages/nextcloud/mono_pkg.yaml +++ /dev/null @@ -1,8 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . - - test \ No newline at end of file diff --git a/packages/settings/mono_pkg.yaml b/packages/settings/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/settings/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/packages/sort_box/mono_pkg.yaml b/packages/sort_box/mono_pkg.yaml deleted file mode 100644 index a6c495b0..00000000 --- a/packages/sort_box/mono_pkg.yaml +++ /dev/null @@ -1,8 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . - - test diff --git a/packages/spec_templates/mono_pkg.yaml b/packages/spec_templates/mono_pkg.yaml deleted file mode 100644 index 60bc3bfd..00000000 --- a/packages/spec_templates/mono_pkg.yaml +++ /dev/null @@ -1,7 +0,0 @@ -sdk: - - stable - -stages: - - all: - - analyze: --fatal-infos . - - format: --output=none --set-exit-if-changed --line-length 120 . diff --git a/pubspec.yaml b/pubspec.yaml index 240c24d3..2abbb105 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,4 +6,3 @@ environment: dev_dependencies: fvm: ^2.4.1 melos: ^3.1.0 - mono_repo: ^6.5.6 diff --git a/tool/ci.sh b/tool/ci.sh deleted file mode 100755 index b07eaafb..00000000 --- a/tool/ci.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/bash -# Created with package:mono_repo v6.5.6 - -# Support built in commands on windows out of the box. -# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") -# then "flutter" is called instead of "pub". -# This assumes that the Flutter SDK has been installed in a previous step. -function pub() { - if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then - command flutter pub "$@" - else - command dart pub "$@" - fi -} -# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") -# then "flutter" is called instead of "pub". -# This assumes that the Flutter SDK has been installed in a previous step. -function format() { - if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then - command flutter format "$@" - else - command dart format "$@" - fi -} -# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter") -# then "flutter" is called instead of "pub". -# This assumes that the Flutter SDK has been installed in a previous step. -function analyze() { - if grep -Fq "sdk: flutter" "${PWD}/pubspec.yaml"; then - command flutter analyze "$@" - else - command dart analyze "$@" - fi -} - -if [[ -z ${PKGS} ]]; then - echo -e '\033[31mPKGS environment variable must be set! - TERMINATING JOB\033[0m' - exit 64 -fi - -if [[ "$#" == "0" ]]; then - echo -e '\033[31mAt least one task argument must be provided! - TERMINATING JOB\033[0m' - exit 64 -fi - -SUCCESS_COUNT=0 -declare -a FAILURES - -for PKG in ${PKGS}; do - echo -e "\033[1mPKG: ${PKG}\033[22m" - EXIT_CODE=0 - pushd "${PKG}" >/dev/null || EXIT_CODE=$? - - if [[ ${EXIT_CODE} -ne 0 ]]; then - echo -e "\033[31mPKG: '${PKG}' does not exist - TERMINATING JOB\033[0m" - exit 64 - fi - - dart pub upgrade || EXIT_CODE=$? - - if [[ ${EXIT_CODE} -ne 0 ]]; then - echo -e "\033[31mPKG: ${PKG}; 'dart pub upgrade' - FAILED (${EXIT_CODE})\033[0m" - FAILURES+=("${PKG}; 'dart pub upgrade'") - else - for TASK in "$@"; do - EXIT_CODE=0 - echo - echo -e "\033[1mPKG: ${PKG}; TASK: ${TASK}\033[22m" - case ${TASK} in - analyze_0) - echo 'flutter analyze --fatal-infos .' - flutter analyze --fatal-infos . || EXIT_CODE=$? - ;; - analyze_1) - echo 'dart analyze --fatal-infos .' - dart analyze --fatal-infos . || EXIT_CODE=$? - ;; - format) - echo 'dart format --output=none --set-exit-if-changed --line-length 120 .' - dart format --output=none --set-exit-if-changed --line-length 120 . || EXIT_CODE=$? - ;; - test_0) - echo 'flutter test' - flutter test || EXIT_CODE=$? - ;; - test_1) - echo 'dart test' - dart test || EXIT_CODE=$? - ;; - *) - echo -e "\033[31mUnknown TASK '${TASK}' - TERMINATING JOB\033[0m" - exit 64 - ;; - esac - - if [[ ${EXIT_CODE} -ne 0 ]]; then - echo -e "\033[31mPKG: ${PKG}; TASK: ${TASK} - FAILED (${EXIT_CODE})\033[0m" - FAILURES+=("${PKG}; TASK: ${TASK}") - else - echo -e "\033[32mPKG: ${PKG}; TASK: ${TASK} - SUCCEEDED\033[0m" - SUCCESS_COUNT=$((SUCCESS_COUNT + 1)) - fi - - done - fi - - echo - echo -e "\033[32mSUCCESS COUNT: ${SUCCESS_COUNT}\033[0m" - - if [ ${#FAILURES[@]} -ne 0 ]; then - echo -e "\033[31mFAILURES: ${#FAILURES[@]}\033[0m" - for i in "${FAILURES[@]}"; do - echo -e "\033[31m $i\033[0m" - done - fi - - popd >/dev/null || exit 70 - echo -done - -if [ ${#FAILURES[@]} -ne 0 ]; then - exit 1 -fi diff --git a/tool/setup.sh b/tool/setup.sh index 5f3da6ce..c092d266 100755 --- a/tool/setup.sh +++ b/tool/setup.sh @@ -3,7 +3,6 @@ set -euxo pipefail cd "$(dirname "$0")/.." dart pub global activate melos 3.1.0 -dart pub global activate mono_repo 6.5.6 dart pub global activate fvm 2.4.1 echo "y" | fvm install melos exec --concurrency=1 flutter pub get diff --git a/tool/update.sh b/tool/update.sh index 61ec2f70..b422e3c6 100755 --- a/tool/update.sh +++ b/tool/update.sh @@ -12,10 +12,10 @@ if [[ "$1" == "flutter" ]]; then dart_version_next_major=$(( dart_version_major + 1 )) find ./packages -name "pubspec.yaml" -exec sed -i "s/flutter: '>=.*'/flutter: '>=$flutter_version'/" {} \; find ./packages -name "pubspec.yaml" -exec sed -i "s/sdk: '>=.* <.*'/sdk: '>=$dart_version_major.$dart_version_minor.0 <$dart_version_next_major.0.0'/" {} \; - fvm exec mono_repo pub get + melos exec flutter pub get elif [[ "$1" == "dependencies" ]]; then - fvm exec mono_repo pub upgrade --major-versions - fvm exec mono_repo pub upgrade + melos exec flutter pub upgrade --major-versions + melos exec flutter pub upgrade elif [ -d "external/nextcloud-$1" ]; then ( cd "external/nextcloud-$1"