Skip to content

Update to latest

Update to latest #30

Workflow file for this run

name: Dart
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze
run: dart analyze
- name: Activate coverage
if: github.event_name == 'pull_request'
run: dart pub global activate coverage
- name: Test with coverage
if: github.event_name == 'pull_request'
run: dart pub global run coverage:test_with_coverage
- name: Test
if: github.event_name != 'pull_request'
run: dart test
- name: Collect coverage
uses: romeovs/[email protected]
if: github.event_name == 'pull_request'
with:
lcov-file: ./coverage/lcov.info
github-token: ${{ secrets.PAT }}