Skip to content

Commit

Permalink
Merge pull request #46 from llucax/dart-2.17
Browse files Browse the repository at this point in the history
Test against Dart 2.17
  • Loading branch information
llucax authored May 16, 2022
2 parents b0e5705 + 224e1c5 commit ba09789
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
# Current supported major
major: 2
# Latest minor that we are explicitly supporting
latest_minor: 16
latest_minor: 17

jobs:
check-dart-version:
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
dart_version: ["2.16", "2.15", "2.14", "2.13", "2.12"]
dart_version: ["2.17", "2.16", "2.15", "2.14", "2.13", "2.12"]

runs-on: ubuntu-latest

Expand All @@ -28,19 +28,20 @@ jobs:
fetch-depth: 2 # needed by codecov

- name: Install dependencies
run: pub get
# The $(command -v pub...) is a hack so the dart "prefix" is only used
# when the pub command is not present
run: $(command -v pub || echo dart pub) get

- name: Analyze
uses: zgosalvez/github-actions-analyze-flutter@v1
with:
fail-on-warnings: true
run: dart analyze --fatal-infos

- name: Run tests
run: pub run test --coverage=./coverage
run: $(command -v pub || echo dart pub) run test --coverage=./coverage

- name: Convert coverage to LCOV
run: pub run coverage:format_coverage --lcov --packages=.packages
--report-on=lib -i coverage -o coverage/lcov.info
run: $(command -v pub || echo dart pub) run coverage:format_coverage
--lcov --packages=.dart_tool/package_config.json --report-on=lib
-i coverage -o coverage/lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.0.0+5

- Update and test against Dart 2.17.

[More details available in
GitHub](https://github.com/llucax/pausable_timer/milestone/9?closed=1).

## 1.0.0+4

- Update and test against Dart 2.16.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A timer implementation that can be paused, resumed and reset.
homepage: https://github.com/llucax/pausable_timer
repository: https://github.com/llucax/pausable_timer

version: 1.0.0+4
version: 1.0.0+5

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit ba09789

Please sign in to comment.