-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (44 loc) · 1.1 KB
/
flutter.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
name: Flutter CI
on:
workflow_dispatch:
push:
branches: ["*"]
paths:
- "gen/**"
- "lib/**"
- "test/**"
- "pubspec.yaml"
- "pubspec.lock"
pull_request:
branches: ["*"]
paths:
- "gen/**"
- "lib/**"
- "test/**"
- "pubspec.yaml"
- "pubspec.lock"
jobs:
build:
name: Check any issues
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v4
with:
channel: stable
version: latest
cache: true
cache-sdk: true
- name: Get Flutter dependencies
run: flutter pub get
- name: Get Flutter dependencies on gen
run: flutter pub get
working-directory: gen
- name: Check for any formatting issues in the code
run: dart format --set-exit-if-changed . gen
- name: Statically analyze the Dart code for any errors
run: dart analyze . gen
- name: Run widget tests for our Flutter project.
run: flutter test