-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 889 Bytes
/
validate.yml
File metadata and controls
37 lines (28 loc) · 889 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
name: Validate PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Clone Flutter SDK
run: |
cd /home/runner
git clone --depth 1 --branch stable https://github.com/flutter/flutter.git
- name: Add Flutter to PATH
run: echo "/home/runner/flutter/bin" >> $GITHUB_PATH
- name: Setup Flutter
run: |
flutter --version
flutter config --no-analytics
- name: Setup local.properties
run: |
echo "sdk.dir=$ANDROID_HOME" > android/local.properties
echo "flutter.sdk=/home/runner/flutter" >> android/local.properties
- name: Get dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze