-
Notifications
You must be signed in to change notification settings - Fork 26
52 lines (48 loc) · 1.46 KB
/
flutter.yaml
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
43
44
45
46
47
48
49
50
51
52
name: Flutter
on:
push:
branches: [master]
paths:
- "flutter/**"
- ".github/workflows/flutter.yml"
pull_request:
paths:
- "flutter/**"
- ".github/workflows/flutter.yml"
env:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN_FLUTTER }}
LAUNCHABLE_DEBUG: 1
LAUNCHABLE_REPORT_ERROR: 1
jobs:
tests:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: flutter
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel setuptools_scm
pip install launchable
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.4'
- run: "launchable verify"
- name: Record commits and build
run: 'launchable record build --name "$GITHUB_RUN_ID" --source ..' # care for working-directory path
# Skip #TODO(Konboi): enable subset
#- name: Subset
# run: launchable subset --confidence 100% flutter test/**/*_test.dart > launchable-subset.txt
- name: Install dependencies
run: flutter pub get
- name: Test
run: flutter test --machine > report.json
- name: Record
run: launchable record tests --base $(pwd) flutter report.json
if: always()