-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (62 loc) · 1.81 KB
/
dart.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build_reactter:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/reactter
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install app dependencies
run: flutter pub get
- name: Test app
run: flutter test --coverage
- uses: actions/upload-artifact@v4
with:
name: reactter-coverage
path: ./packages/reactter/coverage/lcov.info
build_flutter_reactter:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/flutter_reactter
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6'
channel: "stable"
- name: Install app dependencies
run: flutter pub get
- name: Test app
run: flutter test --coverage
- uses: actions/upload-artifact@v4
with:
name: flutter_reactter-coverage
path: ./packages/flutter_reactter/coverage/lcov.info
upload-to-codecov:
needs: [build_reactter, build_flutter_reactter]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}