Skip to content

Commit 1ed284a

Browse files
authored
build: change workflow
1 parent 3383dec commit 1ed284a

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed

.github/workflows/dart.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ on:
1212
branches: ["master"]
1313

1414
jobs:
15-
build:
15+
build_reactter:
1616
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: ./packages/reactter
1720

1821
steps:
1922
- uses: actions/checkout@v3
@@ -25,8 +28,41 @@ jobs:
2528
run: flutter pub get
2629
- name: Test app
2730
run: flutter test --coverage
28-
- name: Upload coverage to Codecov
29-
uses: codecov/codecov-action@v1
31+
- uses: actions/upload-artifact@v2
32+
with:
33+
name: reactter-coverage
34+
path: ./packages/reactter/coverage/lcov.info
35+
36+
build_flutter_reactter:
37+
runs-on: ubuntu-latest
38+
defaults:
39+
run:
40+
working-directory: ./packages/flutter_reactter
41+
42+
steps:
43+
- uses: actions/checkout@v3
44+
- name: Install Flutter
45+
uses: subosito/flutter-action@v2
46+
with:
47+
channel: "stable"
48+
- name: Install app dependencies
49+
run: flutter pub get
50+
- name: Test app
51+
run: flutter test --coverage
52+
- uses: actions/upload-artifact@v2
53+
with:
54+
name: flutter_reactter-coverage
55+
path: ./packages/flutter_reactter/coverage/lcov.info
56+
57+
upload-to-codecov:
58+
needs: [build_reactter, build_flutter_reactter]
59+
runs-on: ubuntu-latest
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v3
63+
- name: Download artifacts
64+
uses: actions/download-artifact@v2
65+
- name: Upload to Codecov
66+
uses: codecov/codecov-action@v2
3067
with:
3168
token: ${{ secrets.CODECOV_TOKEN }}
32-
file: coverage/lcov.info

0 commit comments

Comments
 (0)