diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index ecd72dd..ac09619 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -22,10 +22,12 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies run: dart pub get + - name: Lint Code + run: dart analyze - name: Run tests - run: pub run test --coverage="coverage" + run: dart pub run test --coverage="coverage" - name: Convert coverage to ICOV - run: pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib + run: dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib - name: Upload coverage to Codecov uses: codecov/codecov-action@v1.0.2 with: diff --git a/pubspec.yaml b/pubspec.yaml index e3f7974..c46387b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,6 +13,7 @@ dependencies: archive: ^3.3.7 gson: ^0.1.6-dev dev_dependencies: - lints: ^2.1.1 + lints: ^3.0.0 test: ^1.24.3 + coverage: ^1.7.1 meta: ^1.9.1 \ No newline at end of file