diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c55c19c..6cc6f62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/checkout@v3.1.0 with: fetch-depth: 2 + - uses: actions/setup-node@v4 - uses: subosito/flutter-action@v2.7.1 with: channel: master @@ -30,6 +31,9 @@ jobs: - name: Add pub cache to PATH run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV + - name: Install firebase CLI + run: npm install -g firebase-tools + - name: Install dependencies run: dart pub get && cd example && dart pub get && cd - diff --git a/scripts/coverage.sh b/scripts/coverage.sh index fdbc00a..0d05f12 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -5,6 +5,6 @@ set -e dart pub global activate coverage -dart test --coverage="coverage" +firebase emulators:exec --only firestore,auth "dart test --coverage=coverage" format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib \ No newline at end of file