Skip to content

chore(repo): Enhance Server & App Deployment #5

chore(repo): Enhance Server & App Deployment

chore(repo): Enhance Server & App Deployment #5

name: (Frontend) Flutter Code Analysis
on:
push:
branches: [ main ]
paths:
- 'frontend/**'
pull_request:
branches: [ main ]
paths:
- 'frontend/**'
# Set default working directory
defaults:
run:
working-directory: ./frontend # Change the working directory to /frontend
jobs:
analysis:
name: Flutter Code Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
architecture: x64 # optional, x64 or arm64
- run: flutter pub get
- name: Analyze Dart
uses: zgosalvez/github-actions-analyze-dart@v3
with:
line-length: 128
working-directory: ./frontend