-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (30 loc) · 946 Bytes
/
test.yml
File metadata and controls
40 lines (30 loc) · 946 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
name: Test on packages
on:
push:
branches: [ main, develop ]
paths:
- "packages/**"
- ".github/workflows/test.yml"
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
melos-version: '6.3.2'
- name: Disable analytics
run: flutter config --no-analytics
- name: Install dependencies
run: melos exec flutter pub get
- name: Verify formatting
run: melos exec -c 1 -- "dart format --output=none --set-exit-if-changed ."
- name: Analyze project source
run: melos exec -c 1 -- "dart analyze --fatal-infos ."
- name: Run tests
run: melos exec flutter test --coverage --verbose test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3