forked from bosskmk/pluto_grid
-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (33 loc) · 956 Bytes
/
coverage.yml
File metadata and controls
35 lines (33 loc) · 956 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
name: Coverage
on:
pull_request:
types: [opened, synchronize, reopened]
paths: ['**/*.dart', '**/*.yml', '**/*.yaml', '**/*.gradle', '**/*.java']
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
steps:
# Without this, there are no files in the directory.
- uses: actions/checkout@v3
- name: Cache Flutter dependencies
uses: actions/cache@v4
with:
path: |
~/.pub-cache
~/.dartServer/.analysis-driver
key: ${{ runner.os }}-pub-${{ hashFiles('pubspec.yaml', 'analysis_options.yaml') }}
restore-keys: |
${{ runner.os }}-pub-
# using flutter
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: dart --version
- run: flutter --version
- run: flutter pub get
- run: flutter test --coverage