-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (35 loc) · 960 Bytes
/
android.yaml
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
name: android
on:
workflow_dispatch:
branches:
- master
pull_request:
branches: ['master']
paths: ['app_widget_android/lib/**', 'app_widget_android/test/**']
push:
branches: ['master']
paths: ['app_widget_android/lib/**', 'app_widget_android/test/**']
jobs:
analysis:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app_widget_android
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3 # checkout to current dir
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: ${{ runner.os }}-flutter-install-cache
cache-path: ${{ runner.tool_cache }}/flutter
- run: flutter pub get
- name: Static Analysis
run: flutter analyze
- name: unit test
run: flutter test
- name: pub publishable
run: flutter pub publish --dry-run