-
-
Notifications
You must be signed in to change notification settings - Fork 31
59 lines (47 loc) · 1.25 KB
/
commit.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
name: Check
on:
push:
workflow_call:
inputs:
external_call:
description: 'To distinguish workflow_call from regular push'
type: boolean
required: false
default: true
jobs:
setup_env:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup the Java environment.
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{vars.JAVA_VERSION}}
cache: 'gradle'
# Setup the Flutter environment.
- uses: subosito/flutter-action@v2
with:
channel: ${{vars.FLUTTER_CHANNEL}}
cache: true
# No dart analytics.
- run: dart --disable-analytics
# No flutter analytics.
- run: flutter config --disable-analytics
# Get flutter dependencies.
- run: flutter pub get
analyze:
runs-on: ubuntu-latest
needs: [setup_env]
steps:
# Check for any formatting issues in the code.
- run: dart format --set-exit-if-changed .
# Statically analyze the Dart code for any errors.
- run: dart analyze .
# test:
# runs-on: ubuntu-latest
# needs: [analyze]
#
# steps:
# # Run widget tests for our flutter project.
# - run: flutter test