Skip to content

Commit

Permalink
Use dart only in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
amantoux committed Jan 14, 2024
1 parent 6c9b16d commit 1dd9929
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build.yml
Expand Up @@ -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
Expand Down

0 comments on commit 1dd9929

Please sign in to comment.