-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (34 loc) · 1.01 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Dart
on:
push:
branches: [ master ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**/README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🐦 Setup Flutter SDK
uses: flutter-actions/setup-flutter@v1
with:
version: '3.16.8'
- name: 🛠 Install dependencies
run: flutter pub get
- name: 👨🎨 Validate formatting
run: dart format --set-exit-if-changed lib test
- name: 🕵️♀️ Analyze project source
run: flutter analyze . --fatal-infos
- name: 🧪 Run tests
run: flutter test --coverage
- name: 🎯 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v1
- name: 🥇 Update coverage badge
if: github.event_name != 'pull_request'
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}