forked from Ignition-World/ignition-pay
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.04 KB
/
Copy pathci-flutter.yml
File metadata and controls
42 lines (39 loc) · 1.04 KB
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
name: ci-flutter
on:
pull_request:
paths:
- apps/mobile/**
- packages/**
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}
- run: cd apps/mobile && flutter pub get
- run: cd apps/mobile && flutter test --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: apps/mobile/coverage/lcov.info
flags: flutter
test-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- id: setup-chrome
uses: browser-actions/setup-chrome@v1
- run: cd apps/mobile && flutter pub get
- run: cd apps/mobile && flutter test --platform chrome
env:
CHROME_EXECUTABLE: ${{ steps.setup-chrome.outputs.chrome-path }}