feat: add melos CI workflow

This commit is contained in:
Freek van de Ven 2023-10-25 11:24:23 +02:00
parent 2e79910e77
commit 96f3138656
4 changed files with 23 additions and 15 deletions

14
.github/workflows/melos-ci.yml vendored Normal file
View file

@ -0,0 +1,14 @@
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
with:
subfolder: '.' # add optional subfolder to run workflow in

View file

@ -9,7 +9,7 @@ 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:
@ -26,14 +26,14 @@ scripts:
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 `dart 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 `dart format` checks for all packages.

View file

@ -145,14 +145,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.0.3"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
url: "https://pub.dev"
source: hosted
version: "1.0.6"
dart_style:
dependency: transitive
description:

View file

@ -14,9 +14,11 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_community_chat_view:
path: ..
cupertino_icons: ^1.0.2
flutter_community_chat_view:
git:
url: https://github.com/Iconica-Development/flutter_community_chat.git
path: packages/flutter_community_chat_view
ref: 0.3.3
dev_dependencies:
flutter_test: