mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-18 18:13:46 +02:00
feat: update component CI
This commit is contained in:
parent
56d92d69f6
commit
55e4e50798
3 changed files with 20 additions and 8 deletions
12
.github/workflows/melos-component-ci.yml
vendored
Normal file
12
.github/workflows/melos-component-ci.yml
vendored
Normal file
|
@ -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
|
16
melos.yaml
16
melos.yaml
|
@ -13,31 +13,31 @@ 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:
|
||||||
run: |
|
run: |
|
||||||
melos exec -c 1 -- "flutter pub get"
|
dart run melos exec -c 1 -- "flutter pub get"
|
||||||
melos exec --scope="*example*" -c 1 -- "flutter pub get"
|
dart run melos exec --scope="*example*" -c 1 -- "flutter pub get"
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
run: melos exec -c 1 -- "flutter pub upgrade"
|
run: dart run melos exec -c 1 -- "flutter pub upgrade"
|
||||||
|
|
||||||
create:
|
create:
|
||||||
# run create in the example folder of flutter_timeline_view
|
# 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:
|
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 `flutter format` for all packages.
|
description: Run `flutter 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 `flutter format` checks for all packages.
|
description: Run `flutter format` checks for all packages.
|
||||||
|
|
Loading…
Reference in a new issue