-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (50 loc) · 1.26 KB
/
flutter.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
name: CICD
on:
push:
branches:
- main
- development
- 'dev/test/**'
paths:
- beakpeek/**
pull_request:
branches:
- main
- development
paths:
- beakpeek/**
workflow_dispatch:
defaults:
run:
working-directory: ./beakpeek
jobs:
Run-Flutter-Tests:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Cache Flutter dependancies
uses: actions/cache@v3
with:
path: |
~/.pub-cache
~/.flutter
keys: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}
- name: Install Flutter dependecies
run: flutter pub get
- name: Run Flutter tests
run: flutter test --coverage
- name: Upload Flutter Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./beakpeek/coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
name: Flutter Coverage