-
-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (44 loc) · 1.2 KB
/
check-flutter-unittest.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
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: Flutter Unit tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
flutter:
strategy:
matrix:
include:
- name: App
path: ./app
include_enven: true
- name: Notifify
path: packages/acter_notifify
name: Flutter Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
name: Set up flutter
with:
flutter-version: '3.24'
channel: 'stable'
- name: Generate env
working-directory: ${{ matrix.path }}
if: ${{ matrix.include_enven }}
run: dart run enven
- name: Run flutter unit tests
working-directory: ${{ matrix.path }}
run: flutter test --coverage
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@v4
with:
working-directory: ${{ matrix.path }}
directory: coverage
flags: unittest
name: flutter-widget-tests
token: ${{ secrets.CODECOV_TOKEN }}