Skip to content

chore: setup workspace (monorepo) #114

chore: setup workspace (monorepo)

chore: setup workspace (monorepo) #114

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@v5
# Extract common code in all workflows using action yaml files to .github/actions and use them
- uses: ./.github/actions/setup-flutter
- 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