-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 845 Bytes
/
deploy.yml
File metadata and controls
39 lines (30 loc) · 845 Bytes
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
name: Flutter CI with Code Style Check
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.29.2'
- name: Install dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze
- name: Check code formatting
run: dart format --set-exit-if-changed .
- name: Run tests
run: flutter test
- name: Cache Flutter dependencies
uses: actions/cache@v3
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-cache-${{ hashFiles('pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pub-cache-