Skip to content

Commit 66dd600

Browse files
committed
Allow analyze warnings in CI checks
Updates the checks workflow to make `flutter analyze` non-blocking by using `continue-on-error` and a step ID, then emits a GitHub Actions warning when analysis fails. This keeps visibility into analyzer issues without failing the overall package check.
1 parent 7b8f951 commit 66dd600

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/checks.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ jobs:
3737
working-directory: packages/${{ matrix.package }}
3838

3939
- name: Analyze Dart code
40+
id: analyze
41+
continue-on-error: true
4042
run: flutter analyze
4143
working-directory: packages/${{ matrix.package }}
4244

45+
- name: Report analysis warnings
46+
if: steps.analyze.outcome == 'failure'
47+
run: echo "::warning::Flutter analyze reported issues; continuing without failing the check."
48+
4349
- name: Ensure Dart code is formatted correctly
4450
run: dart format --set-exit-if-changed .
4551
working-directory: packages/${{ matrix.package }}

0 commit comments

Comments
 (0)