From ba7f1730b076ea69fb5527cba62a38abea0f1d5a Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Sat, 4 Nov 2023 18:40:13 -0700 Subject: [PATCH] fix: package build workflow --- .github/workflows/build.yml | 17 ++++++++++++++--- pubspec.yaml | 3 --- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ccdaa6b..cb1ea56 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,9 +22,20 @@ jobs: - name: Install dependencies run: dart pub get + + - name: Check format + run: dart format --set-exit-if-changed lib/ - - name: Build library - run: dart compile exe bin/main.dart + - name: Analyze code + run: dart analyze lib/ + + - name: Setup Flutter + uses: subosito/flutter-action@v1 + with: + channel: 'stable' - name: Build example app - run: dart compile exe example/main.dart + run: | + cd example/ + flutter pub get + flutter build web --release diff --git a/pubspec.yaml b/pubspec.yaml index c1ec8c9..00b36e2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,12 +16,9 @@ topics: environment: sdk: '>=3.1.5 <4.0.0' - flutter: '>=1.17.0' dependencies: cross_file: ^0.3.3+6 - flutter: - sdk: flutter http: ^1.1.0 platform: ^3.1.3