-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (42 loc) · 1.16 KB
/
flutter_test.yml
File metadata and controls
53 lines (42 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
52
53
name: Flutter Test
on:
push:
branches:
- master
pull_request:
jobs:
unit_tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up Java Development Kit
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "21"
- name: Set up Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.44.0"
cache: true
- name: Cache Flutter Pub dependencies
uses: actions/cache@v4
with:
path: ~/.pub-cache
key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-flutter-
- name: Clean Flutter project
run: flutter clean
- name: Display Flutter version
run: flutter --version
- name: Run Flutter Doctor
run: flutter doctor -v
- name: Get Flutter dependencies
run: flutter pub get
- name: Generate localization files
run: flutter gen-l10n
- name: Run Flutter tests
run: flutter test --no-pub