-
Notifications
You must be signed in to change notification settings - Fork 15
39 lines (36 loc) · 906 Bytes
/
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
34
35
36
37
38
39
name: Tests
on:
push:
branches:
- main
paths:
- '**.dart'
- '**.yaml'
- '**.yml'
workflow_dispatch:
jobs:
tests_and_coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2.8.0
with:
channel: stable
cache: true
- name: Flutter version
run: flutter --version
- name: Install melos
run: dart pub global activate melos
- name: Setup melos
run: melos bootstrap
- name: Install dependencies
run: melos deps
- name: Run tests with coverage
run: melos run lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./packages/box_transform/coverage/lcov.info
name: codecov-box-transform