From 55e4e50798c47fd83b9a2d165cceb10cb86ad334 Mon Sep 17 00:00:00 2001 From: Freek van de Ven Date: Sun, 19 Nov 2023 16:14:26 +0100 Subject: [PATCH] feat: update component CI --- .github/{workflows => }/dependabot.yml | 0 .github/workflows/melos-component-ci.yml | 12 ++++++++++++ melos.yaml | 16 ++++++++-------- 3 files changed, 20 insertions(+), 8 deletions(-) rename .github/{workflows => }/dependabot.yml (100%) create mode 100644 .github/workflows/melos-component-ci.yml diff --git a/.github/workflows/dependabot.yml b/.github/dependabot.yml similarity index 100% rename from .github/workflows/dependabot.yml rename to .github/dependabot.yml diff --git a/.github/workflows/melos-component-ci.yml b/.github/workflows/melos-component-ci.yml new file mode 100644 index 0000000..869bed9 --- /dev/null +++ b/.github/workflows/melos-component-ci.yml @@ -0,0 +1,12 @@ +name: Iconica Standard Melos CI Workflow +# Workflow Caller version: 1.0.0 + +on: + pull_request: + workflow_dispatch: + +jobs: + call-global-iconica-workflow: + uses: Iconica-Development/.github/.github/workflows/melos-ci.yml@master + secrets: inherit + permissions: write-all \ No newline at end of file diff --git a/melos.yaml b/melos.yaml index 74e2f94..7e2d1ee 100644 --- a/melos.yaml +++ b/melos.yaml @@ -13,31 +13,31 @@ command: scripts: lint:all: - run: melos run analyze && melos run format + run: dart run melos run analyze && dart run melos run format-check description: Run all static analysis checks. get: run: | - melos exec -c 1 -- "flutter pub get" - melos exec --scope="*example*" -c 1 -- "flutter pub get" + dart run melos exec -c 1 -- "flutter pub get" + dart run melos exec --scope="*example*" -c 1 -- "flutter pub get" upgrade: - run: melos exec -c 1 -- "flutter pub upgrade" + run: dart run melos exec -c 1 -- "flutter pub upgrade" create: # run create in the example folder of flutter_timeline_view - run: melos exec --scope="*example*" -c 1 -- "flutter create ." + run: dart run melos exec --scope="*example*" -c 1 -- "flutter create ." analyze: run: | - melos exec -c 1 -- \ + dart run melos exec -c 1 -- \ flutter analyze --fatal-infos description: Run `flutter analyze` for all packages. format: - run: melos exec dart format . + run: dart run melos exec dart format . description: Run `flutter format` for all packages. format-check: - run: melos exec dart format . --set-exit-if-changed + run: dart run melos exec dart format . --set-exit-if-changed description: Run `flutter format` checks for all packages.