-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (44 loc) · 1.14 KB
/
flutter_test.yml
File metadata and controls
44 lines (44 loc) · 1.14 KB
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
name: Flutter Testing
on:
workflow_dispatch:
pull_request:
branches:
- main
- "release/**"
- "hotfix/**"
push:
branches:
- main
- "release/**"
- "hotfix/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.32.6"
channel: stable
cache: true
- name: install sql
run: sudo apt-get install sqlite3 libsqlite3-dev
- name: Install packages
run: flutter pub get
- name: Check Flutter version
run: flutter --version
- name: Run generator
run: dart run build_runner build --delete-conflicting-outputs
- name: Analyze
run: flutter analyze
- name: Run test with coverage
run: flutter test --coverage
- name: Check coverage
run: dart run tool/check_coverage.dart --min=80
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: flutter-coverage-lcov
path: coverage/lcov.info
if-no-files-found: warn