Skip to content

Commit

Permalink
updated workflows and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed Apr 6, 2024
1 parent 447e4d8 commit 0de38fd
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 44 deletions.
53 changes: 33 additions & 20 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
34 changes: 17 additions & 17 deletions apps/vyuh_demo/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ packages:
command:
version:
workspaceChangelog: false
fetchTags: false
updateGitTagRefs: false

ide:
intellij:
Expand Down
2 changes: 2 additions & 0 deletions packages/sanity/sanity_client/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ environment:

dev_dependencies:
flutter_lints: ^3.0.0
melos: ^5.1.0
melos: ^5.3.0

0 comments on commit 0de38fd

Please sign in to comment.