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: scripts:
lint:all: 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. description: Run all static analysis checks.
get: get:
@ -26,14 +26,14 @@ scripts:
analyze: analyze:
run: | run: |
melos exec -c 1 -- \ dart run melos exec -c 1 -- \
flutter analyze --fatal-infos flutter analyze --fatal-infos
description: Run `flutter analyze` for all packages. description: Run `flutter analyze` for all packages.
format: format:
run: melos exec dart format . run: dart run melos exec dart format .
description: Run `dart format` for all packages. description: Run `dart format` for all packages.
format-check: 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. description: Run `dart format` checks for all packages.

View file

@ -145,14 +145,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.3" 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: dart_style:
dependency: transitive dependency: transitive
description: description:

View file

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