-
-
Notifications
You must be signed in to change notification settings - Fork 36
74 lines (59 loc) · 2.05 KB
/
fleather.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.24.0"
cache: true
# Manually Update this `key`
cache-key: "3.24.0"
- run: dart pub global activate coverage
#
# Parchment
#
- name: Parchment - Install dependencies
working-directory: ./packages/parchment
run: flutter pub get
- name: Parchment - Verify formatting
working-directory: ./packages/parchment
run: dart format --output=none --set-exit-if-changed .
- name: Parchment - Analyze project source
working-directory: ./packages/parchment
run: dart analyze --fatal-infos
- name: Parchment - Run tests
working-directory: ./packages/parchment
run: |
dart test --coverage coverage
dart pub global run coverage:format_coverage --lcov --in ./coverage --out ./coverage/lcov.info --report-on:lib
#
# Fleather
#
- name: Fleather - Install dependencies
working-directory: ./packages/fleather
run: flutter pub get
- name: Fleather - Verify formatting
working-directory: ./packages/fleather
run: dart format --output=none --set-exit-if-changed .
- name: Fleather - Analyze project source
working-directory: ./packages/fleather
run: flutter analyze --fatal-infos
- name: Fleather - Run tests
working-directory: ./packages/fleather
run: flutter test --coverage
- name: Codecov
uses: codecov/codecov-action@v4
with:
files: ./packages/fleather/coverage/lcov.info,./packages/parchment/coverage/lcov.info
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
#
# Check example builds
#
- name: Build example
working-directory: ./packages/fleather/example
run: flutter build web --no-tree-shake-icons