Added quantity Acceleration (0.4.0) #16
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 | |
# Note that this workflow uses the latest stable version of the Dart SDK. | |
# Docker images for other release channels - like dev and beta - are also | |
# available. See https://hub.docker.com/r/google/dart/ for the available | |
# images. | |
container: | |
image: google/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/[email protected] | |
- name: Pub publish (dry-run) | |
run: dart pub publish --dry-run |