-
-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (49 loc) · 1.58 KB
/
yandex_food_delivery_clone.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
55
56
57
58
59
60
61
62
name: yandex_food_delivery_clone
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
schedule:
- cron: "0 0 * * *"
pull_request:
paths:
- "lib/**"
- "test/**"
- "packages/**"
- "pubspec.yaml"
- ".github/workflows/yandex_food_delivery_clone.yaml"
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
channel: [stable]
steps:
- uses: actions/checkout@v4
- uses: subosito/[email protected]
with:
channel: ${{matrix.channel}}
flutter-version: 3.22.0
cache: false
- name: Install Dependencies
run: |
flutter pub global activate very_good_cli
very_good packages get --recursive
- name: Format
run: dart format --set-exit-if-changed lib test
- name: Analyze
run: flutter analyze lib test
- name: Verify Generated Files Committed
run: flutter test ./test/ensure_build_test.dart --run-skipped
- name: Run tests
run: very_good test -x presubmit-only --coverage --test-randomize-ordering-seed random
- name: Check for existing and non-empty coverage file
id: test_coverage_file
run: if [ -s "/coverage/lcov.info" ]; then echo "result=true" >> $GITHUB_OUTPUT ; else echo "result=false" >> $GITHUB_OUTPUT; fi
- name: Very Good Coverage
if: steps.test_coverage_file.outputs.result == 'true'
uses: VeryGoodOpenSource/very_good_coverage@v3
with:
path: "/coverage/lcov.info"