-
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (54 loc) · 1.6 KB
/
validate.yaml
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
name: Validate
on:
pull_request:
branches: [none]
push:
branches: [none]
paths-ignore:
- "**.md"
jobs:
style:
timeout-minutes: 15
name: "Analyze code style compliance"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Show Dart SDK version"
run: dart --version
- name: "Show Flutter SDK version"
run: flutter --version
- name: "Install Flutter package dependencies"
run: flutter pub get
- name: "Show outdated packages"
run: flutter pub outdated
- name: "Dart Analyzer"
run: dart analyze . --fatal-infos
- name: "Formatting Check"
run: |
flutter format .
./.github/workflows/scripts/validate-formatting.sh
test:
runs-on: ubuntu-latest
name: "Tests and coverage"
timeout-minutes: 15
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Test package FlexSeedScheme with coverage"
run: flutter test --coverage
- name: "Upload test coverage to Codecov"
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/lcov.info