0.2.0 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dart | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Print Dart SDK version | |
run: dart --version | |
- name: Install dependencies | |
run: dart pub get | |
- name: Activate coverage | |
run: dart pub global activate coverage | |
- name: Analyze project source | |
run: dart analyze --fatal-infos --fatal-warnings | |
- name: Run tests | |
run: dart test --platform=vm --coverage=coverage | |
- name: Format coverage | |
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --in=coverage/test/ --out=coverage/lcov.info --report-on=lib/ --lcov --check-ignore | |
- name: Coveralls GitHub Action | |
uses: coverallsapp/github-action@v2.1.2 | |
- name: Pub publish (dry-run) | |
run: dart pub publish --dry-run |