-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1009 Bytes
/
test.yml
File metadata and controls
43 lines (35 loc) · 1009 Bytes
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
name: Melos Flutter Test Workflow
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
melos_flutter_tests:
name: Run Melos Flutter Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Melos
run: flutter pub global activate melos
- name: Get dependencies
run: |
flutter pub global run melos bootstrap
flutter pub global run melos pubget
flutter pub global activate coverde
- name: Analyze the project's Dart code
run: flutter pub global run melos analyze
- name: Run tests
run: |
flutter pub global run melos test-coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}