Skip to content

Commit

Permalink
Create .github/workflows/dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dkin-om committed Feb 15, 2021
1 parent eaf2e58 commit 21abd45
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/dart.yml
@@ -0,0 +1,42 @@
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=.packages --in=coverage/test/ --out=stdout --report-on=lib/ --check-ignore

- name: Pub publish (dry-run)
run: dart pub publish --dry-run

0 comments on commit 21abd45

Please sign in to comment.