Skip to content

Commit

Permalink
feat: initial checks
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed Sep 23, 2024
1 parent 177e2ee commit aa480ab
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
6 changes: 6 additions & 0 deletions catalyst_voices/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ check-package-publishing:
FROM +builder
DO flutter-ci+PUBLISH_DRY_RUN

# Runs the license checks for Catalyst Voices.
check-license:
FROM +builder
RUN dart pub global activate license_checker
RUN melos run license-check

# Run unit tests
test-unit:
FROM +builder
Expand Down
66 changes: 66 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,67 @@ packages:
- catalyst_voices_packages/**
- utilities/**

permittedLicenses:
- MIT
- Apache-2.0
- Unicode-DFS-2016
- BSD-3-Clause
- BSD-2-Clause
- BlueOak-1.0.0
- Apache-2.0 WITH LLVM-exception
- CC0-1.0

packageLicenseOverride:
fuchsia_remote_debug_protocol: BSD-3-Clause
flutter_driver: BSD-3-Clause
flutter_localizations: BSD-3-Clause
flutter_test: BSD-3-Clause
flutter_web_plugins: BSD-3-Clause
integration_test: BSD-3-Clause
rxdart: Apache-2.0
vector_math: Apache-2.0
sky_engine: Apache-2.0
flutter_gen: MIT
# catalyst packages
catalyst_analysis: Apache-2.0
catalyst_cose: Apache-2.0
catalyst_cardano_serialization: Apache-2.0
catalyst_cardano_platform_interface: Apache-2.0
catalyst_compression: Apache-2.0
catalyst_compression_web: Apache-2.0
catalyst_cardano_web: Apache-2.0
catalyst_compression_platform_interface: Apache-2.0
catalyst_voices_assets: Apache-2.0
catalyst_voices_assets_example: Apache-2.0
catalyst_cardano: Apache-2.0
catalyst_cardano_example: Apache-2.0
catalyst_voices_localization: Apache-2.0
catalyst_voices_models: Apache-2.0
example: Apache-2.0
catalyst_voices_remote_widgets: Apache-2.0
remote_widgets_example: Apache-2.0
catalyst_voices_view_models: Apache-2.0
catalyst_voices_blocs: Apache-2.0
catalyst_voices_shared: Apache-2.0
catalyst_voices_brands: Apache-2.0
catalyst_voices_services: Apache-2.0
poc_local_storage: Apache-2.0
catalyst_voices_repositories: Apache-2.0
catalyst_voices: Apache-2.0
uikit_example: Apache-2.0

packageSourceOverride:
fuchsia_remote_debug_protocol: https://github.com/flutter/flutter/blob/main/LICENSE
flutter_driver: https://github.com/flutter/flutter/blob/main/LICENSE
flutter_localizations: https://github.com/flutter/flutter/blob/main/LICENSE
flutter_test: https://github.com/flutter/flutter/blob/main/LICENSE
flutter_web_plugins: https://github.com/flutter/flutter/blob/main/LICENSE
integration_test: https://github.com/flutter/flutter/blob/main/LICENSE
rxdart: https://github.com/ReactiveX/rxdart/blob/master/LICENSE
vector_math: https://github.com/google/vector_math.dart/blob/master/LICENSE
sky_engine: https://github.com/flutter/engine/blob/main/sky/packages/sky_engine/LICENSE
flutter_gen: https://github.com/FlutterGen/flutter_gen/blob/main/LICENSE

command:
version:
linkToCommits: true
Expand Down Expand Up @@ -75,6 +136,11 @@ scripts:
melos exec -c 1 --dir-exists="integration_test" -- "find . -name "*.dart" ! -name "*.g.dart" ! -path '*/generated/*' | tr '\n' ' ' | xargs dart format --output none --set-exit-if-changed"
description: Run `dart format` checks for all packages.

license-check:
run: |
melos exec -- lic_ck check-licenses -c $MELOS_ROOT_PATH/melos.yaml
description: Run `lic_ck` checks for all packages.

test:select:
run: |
melos exec -c 1 --dir-exists="test" -- flutter test
Expand Down

0 comments on commit aa480ab

Please sign in to comment.