Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): update verify workflow to use dcm for analysis #242

Merged
merged 7 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/verify_package_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ jobs:
report: ${{ steps.analysis.outputs.json_output }}
min-pub-points: 130

- name: πŸ›‚ Set up file system write permissions
run: sudo chown -R runner:runner $(pwd) && sudo chmod -R 777 $(pwd)
- name: πŸ“₯ Install DCM
if: ${{ github.event_name == 'pull_request' }}
uses: CQLabs/setup-dcm@v1.1.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: πŸ”Ž Dart Code Metrics
if: ${{ github.event_name == 'pull_request' }}
run: dart run dart_code_linter:metrics --fatal-style --fatal-performance --fatal-warnings -r github lib
run: dcm analyze .
tsinis marked this conversation as resolved.
Show resolved Hide resolved

- name: πŸ§ͺ Run Dart tests
if: ${{ !inputs.is_flutter }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FloatingButton extends StatelessWidget {
onLongPress: () => onPressed(isLong: true),
// ignore: prefer-action-button-tooltip, we need long-press here.
child: FloatingActionButton(
heroTag: "fab",
heroTag: "FAB",
onPressed: () => onPressed(isLong: false),
child: AnimatedBuilder(
animation: controller,
Expand Down