-
-
Notifications
You must be signed in to change notification settings - Fork 896
33 lines (31 loc) · 1.04 KB
/
test.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
name: Test flutter_html
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- uses: flutter-actions/setup-flutter@54feb1e258158303e041b9eaf89314dcfbf6d38a
- name: Setup Melos
run: flutter pub global activate melos
- name: Bootstrap Project
run: melos bootstrap
- name: Run Test Suite
run: flutter pub global run melos run test
- name: Compile Test Coverage Report
run: flutter pub global run melos run gen_coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage_report/lcov.info
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run Dart Analysis
run: flutter pub global run melos analyze --fatal-infos
- name: Check that `dart format` has been run on every file
run: dart format -o none --set-exit-if-changed .