-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (46 loc) · 1.28 KB
/
flutter_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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-FileCopyrightText: 2024 Phoenix R&D GmbH <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Flutter tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
flutter-test:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
lfs: true
- name: Set up Just
uses: extractions/setup-just@v2
- name: Set up Flutter FVM
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
with:
path: 'app/.fvmrc'
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Set up CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: just setup-ci
- name: Integrate bridge
run: just frb-integrate
- name: Generate Dart files
run: just generate-dart-files
- name: Analyze dart code
run: just analyze-dart
- name: Run Flutter tests
run: just test-flutter
- name: Upload golden failures
if: failure()
uses: actions/upload-artifact@v4
with:
name: golden-failures
path: app/test/**/failures/*