forked from flutter-tizen/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 971 Bytes
/
Copy pathanalyze.yml
File metadata and controls
38 lines (36 loc) · 971 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
name: Analyze
on: [push, pull_request]
jobs:
dart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: "2.2.1"
channel: "stable"
- name: Install pub dependencies
run: |
for d in `pwd`/packages/*/; do
cd $d
flutter pub get
done
- name: Verify formatting
run: flutter format --set-exit-if-changed packages
- name: Analyze the plugin's Dart code
run: |
cd packages
flutter analyze
clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "2.7"
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install clang-format-11
- name: Check tidy
run: tools/run_command.py tidy --dir packages