Skip to content

Commit

Permalink
Add an action to analyze packages
Browse files Browse the repository at this point in the history
Signed-off-by: Boram Bae <[email protected]>
  • Loading branch information
bbrto21 committed Sep 15, 2021
1 parent f691594 commit 396ec2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Format
name: Analyze

on: [push, pull_request]

Expand All @@ -10,6 +10,7 @@ jobs:
- uses: subosito/flutter-action@v1
with:
flutter-version: "2.2.1"
channel: "stable"
- name: Install pub dependencies
run: |
for d in `pwd`/packages/*/; do
Expand All @@ -18,6 +19,10 @@ jobs:
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:
Expand Down
5 changes: 2 additions & 3 deletions tools/commands/build_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ def parse_args(args):
return parser.parse_args(args)


def _build_examples(plugin):
name = os.path.basename(plugin)
example_dir = os.path.join(plugin, 'example')
def _build_examples(plugin_dir):
example_dir = os.path.join(plugin_dir, 'example')
subprocess.run('flutter-tizen pub get', shell=True, cwd=example_dir)

completed_process = subprocess.run('flutter-tizen build tpk --device-profile wearable -v',
Expand Down

0 comments on commit 396ec2c

Please sign in to comment.