Skip to content

chore: bump to Dart 3.9.0, format Dart files #110

chore: bump to Dart 3.9.0, format Dart files

chore: bump to Dart 3.9.0, format Dart files #110

Workflow file for this run

name: Code Quality Checks
on:
push:
branches: [main]
paths:
- .github/workflows/checks.yml
- lib/**
- test/**
- integration_test/**
- pubspec.yaml
- pubspec.lock
- analysis_options.yaml
pull_request:
paths:
- .github/workflows/checks.yml
- lib/**
- test/**
- integration_test/**
- pubspec.yaml
- pubspec.lock
- analysis_options.yaml
jobs:
checks:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
# Extract common code in all workflows using action yaml files to .github/actions and use them
- name: Setup Flutter (Stable)
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install Package Dependencies
run: flutter pub get
- name: Perform Flutter Analysis
run: flutter analyze --write=flutter_analyze.log
- if: ${{ !cancelled() }}
uses: yorifuji/flutter-analyze-commenter@v1
with:
analyze-log: flutter_analyze.log
verbose: false
- name: Validate Dart Code Formatting
run: dart format --set-exit-if-changed .
- name: Preview Potential Dart Fixes
run: dart fix --dry-run
- name: Run Flutter unit tests
run: flutter test
timeout-minutes: 5
# This action will validate absolute HTTP links, but will not check
# relative anchor links within the same Markdown file (e.g., [Install](#install)).
- name: Verify Markdown Links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: .github/workflows/markdown_link_check_config.json