-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.18 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
name: 🐦 Flutter tests and coverage
on:
push:
branches:
- main
- development
- 'dev/test/**'
paths:
- beakpeek/**
pull_request:
branches:
- main
- development
paths:
- beakpeek/**
workflow_dispatch:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
defaults:
run:
working-directory: ./beakpeek
jobs:
Run-Flutter-Tests:
name: 🧪 Test flutter
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/[email protected]
with:
channel: stable
cache: true
pub-cache-key: ${{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
if: ${{ !env.ACT }}
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