diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 25203c38..e9d1385b 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -14,37 +14,50 @@ on: jobs: build: runs-on: ubuntu-latest + name: {{ matrix.package }} strategy: matrix: + # All the packages are specified by their name and not path. + # This is because the package is passed to the 'melos exec' command package: - - packages/system/vyuh_extension_content - - packages/system/vyuh_cache - - packages/system/vyuh_core - - packages/system/vyuh_feature_developer - - packages/system/vyuh_feature_system - - packages/system/vyuh_extension_script - - packages/sanity/sanity_client - - packages/sanity/flutter_sanity_portable_text + - vyuh_extension_content + - vyuh_cache + - vyuh_core + - vyuh_feature_developer + - vyuh_feature_system + - vyuh_extension_script + - sanity_client + - flutter_sanity_portable_text + include: + - package: sanity_client + path: packages/sanity + test: true + - package: flutter_sanity_portable_text + path: packages/sanity + test: true steps: - uses: actions/checkout@v3 - # Note: This workflow uses the latest stable version of the Dart SDK. - # You can specify other versions if desired, see documentation here: - # https://github.com/dart-lang/setup-dart/blob/main/README.md - # - uses: dart-lang/setup-dart@v1 - uses: subosito/flutter-action@v2 - name: Install dependencies run: | + dart pub global activate melos dart pub get dart run melos bs - # Consider passing '--fatal-infos' for slightly stricter analysis. - - name: Analyze project source - run: dart analyze ${{ matrix.package }} + - name: Analyze package + run: melos exec --scope="{{ matrix.package }}" -- dart analyze --fatal-infos - # Your project will need to have tests in test/ and a dependency on - # package:test for this step to succeed. Note that Flutter projects will - # want to change this to 'flutter test'. - # - name: Run tests - # run: dart test + - name: Run tests + if: matrix.test + run: melos exec --scope="{{ matrix.package }}" -- flutter test --coverage + + - name: Upload coverage reports to Codecov + if: matrix.test + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: ${{ matrix.package }} + files: ${{ matrix.path }}/${{ matrix.package }}/coverage/lcov.info + slug: vyuh-tech/vyuh diff --git a/.github/workflows/publish-dart.yml b/.github/workflows/publish.yml similarity index 100% rename from .github/workflows/publish-dart.yml rename to .github/workflows/publish.yml diff --git a/apps/vyuh_demo/pubspec.lock b/apps/vyuh_demo/pubspec.lock index 70331415..4044c3f5 100644 --- a/apps/vyuh_demo/pubspec.lock +++ b/apps/vyuh_demo/pubspec.lock @@ -153,25 +153,25 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" flutter_mobx: dependency: "direct main" description: name: flutter_mobx - sha256: "4a5d062ff85ed3759f4aac6410ff0ffae32e324b2e71ca722ae1b37b32e865f4" + sha256: "859fbf452fa9c2519d2700b125dd7fb14c508bbdd7fb65e26ca8ff6c92280e2e" url: "https://pub.dev" source: hosted - version: "2.2.0+2" + version: "2.2.1+1" flutter_sanity_portable_text: dependency: "direct overridden" description: path: "../../packages/sanity/flutter_sanity_portable_text" relative: true source: path - version: "1.0.0-beta.20" + version: "1.0.0-beta.21" flutter_shaders: dependency: transitive description: @@ -202,18 +202,18 @@ packages: dependency: transitive description: name: get_it - sha256: e6017ce7fdeaf218dc51a100344d8cb70134b80e28b760f8bb23c242437bafd7 + sha256: "36524bfb3f0b4ec952c3202466fdd69ad1f7ac1dd9b0a7564177707e45bfaeb9" url: "https://pub.dev" source: hosted - version: "7.6.7" + version: "7.6.8" go_router: dependency: transitive description: name: go_router - sha256: "7ecb2f391edbca5473db591b48555a8912dde60edd0fb3013bd6743033b2d3f8" + sha256: "5ed2687bc961f33a752017ccaa7edead3e5601b28b6376a5901bf24728556b85" url: "https://pub.dev" source: hosted - version: "13.2.1" + version: "13.2.2" http: dependency: transitive description: @@ -290,10 +290,10 @@ packages: dependency: transitive description: name: logger - sha256: b3ff55aeb08d9d8901b767650285872cb1bb8f508373b3e348d60268b0c7f770 + sha256: "8c94b8c219e7e50194efc8771cd0e9f10807d8d3e219af473d89b06cc2ee4e04" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.2.0" logging: dependency: transitive description: @@ -338,10 +338,10 @@ packages: dependency: "direct main" description: name: mobx - sha256: "74ee54012dc7c1b3276eaa960a600a7418ef5f9997565deb8fca1fd88fb36b78" + sha256: "63920b27b32ad1910adfe767ab1750e4c212e8923232a1f891597b362074ea5e" url: "https://pub.dev" source: hosted - version: "2.3.0+1" + version: "2.3.3+2" nanoid: dependency: transitive description: @@ -503,10 +503,10 @@ packages: dependency: transitive description: name: sqflite - sha256: a9016f495c927cb90557c909ff26a6d92d9bd54fc42ba92e19d4e79d61e798c6 + sha256: "5ce2e1a15e822c3b4bfb5400455775e421da7098eed8adc8f26298ada7c9308c" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3" sqflite_common: dependency: transitive description: @@ -690,10 +690,10 @@ packages: dependency: transitive description: name: win32 - sha256: "8cb58b45c47dcb42ab3651533626161d6b67a2921917d8d429791f76972b3480" + sha256: "0a989dc7ca2bb51eac91e8fd00851297cfffd641aa7538b165c62637ca0eaa4a" url: "https://pub.dev" source: hosted - version: "5.3.0" + version: "5.4.0" xdg_directories: dependency: transitive description: diff --git a/melos.yaml b/melos.yaml index 626ca98b..8e79bb10 100644 --- a/melos.yaml +++ b/melos.yaml @@ -10,6 +10,8 @@ packages: command: version: workspaceChangelog: false + fetchTags: false + updateGitTagRefs: false ide: intellij: diff --git a/packages/sanity/sanity_client/README.md b/packages/sanity/sanity_client/README.md index d61535fa..d990720a 100644 --- a/packages/sanity/sanity_client/README.md +++ b/packages/sanity/sanity_client/README.md @@ -1,5 +1,7 @@ # Sanity Client +[![sanity_client](https://img.shields.io/pub/v/sanity_client.svg?label=sanity_client&logo=dart&color=blue&style=for-the-badge)](https://pub.dev/packages/sanity_client) + A Dart client for connecting to Sanity.io projects and executing GROQ queries. It supports the HTTP semantics described here: https://www.sanity.io/docs/http-query diff --git a/pubspec.lock b/pubspec.lock index e470c7eb..77f3aace 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -85,10 +85,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" glob: dependency: transitive description: @@ -157,18 +157,18 @@ packages: dependency: "direct dev" description: name: melos - sha256: "1ae029702496a0c143536a32d8a91706203803bb8a1685237ca8c9edc17ff25b" + sha256: a0cb264096a315e4acdb66ae75ee594a76c97fe15ce9ae469f6c58c6c4b2be87 url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "5.3.0" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: "25dfcaf170a0190f47ca6355bdd4552cb8924b430512ff0cafb8db9bd41fe33b" url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.14.0" mustache_template: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 1ba8b791..07ef1224 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,4 +5,4 @@ environment: dev_dependencies: flutter_lints: ^3.0.0 - melos: ^5.1.0 + melos: ^5.3.0