From e341176204e1f3b45255eaee17b9927ebaf5d793 Mon Sep 17 00:00:00 2001 From: Alan Mantoux Date: Sun, 14 Jan 2024 18:54:50 +0100 Subject: [PATCH] Use dart only in CI (#4) --- .github/workflows/build.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b20faf2..2feaf60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,25 +8,23 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 - with: - flutter-version: "3.16.6" - cache: true - # Manually Update this `key` - cache-key: "202401114" + - uses: dart-lang/setup-dart@v1 + - run: dart pub global activate coverage - name: Install dependencies - run: flutter pub get + run: dart pub get - name: Verify formatting run: dart format --output=none --set-exit-if-changed . - name: Analyze project source - run: flutter analyze --fatal-infos + run: dart analyze --fatal-infos - name: Run tests - run: flutter test --coverage + run: | + dart test --coverage coverage + dart pub global run coverage:format_coverage --lcov --in ./coverage --out ./coverage/lcov.info --report-on:lib - name: Codecov uses: codecov/codecov-action@v3