Skip to content

Commit 435204b

Browse files
authored
feat: add analyze directories option to flutter package (#100)
* feat: adding analyze directories option to flutter package * update readme
1 parent 3ddb4a1 commit 435204b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/flutter_package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Flutter Package Workflow
33
on:
44
workflow_call:
55
inputs:
6+
analyze_directories:
7+
required: false
8+
type: string
9+
default: "lib test"
610
concurrency:
711
required: false
812
type: number
@@ -78,7 +82,7 @@ jobs:
7882
run: dart format --set-exit-if-changed lib test
7983

8084
- name: 🕵️ Analyze
81-
run: flutter analyze lib test
85+
run: flutter analyze ${{inputs.analyze_directories}}
8286

8387
- name: 🧪 Run Tests
8488
run: very_good test -j ${{inputs.concurrency}} ${{(inputs.test_recursion && '--recursive') || ''}} ${{(inputs.test_optimization && '--optimization') || '--no-optimization'}} --coverage --test-randomize-ordering-seed random

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ The Flutter package workflow consists of the following steps:
141141

142142
### Inputs
143143

144+
#### `analyze_directories`
145+
146+
**Optional** A space separated list of folders that should be analyzed.
147+
148+
**Default** `"lib test"`
149+
144150
#### `concurrency`
145151

146152
**Optional** The number of concurrent test suites run.

0 commit comments

Comments
 (0)