Skip to content

Commit

Permalink
CI: Code Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed May 6, 2024
1 parent 44966e9 commit 0b2158e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'code analysis'
run-name: 'Code Analysis'

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'

jobs:

code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Prepare dependencies
run: |
flutter --version
flutter pub get
- name: Check Dart code formatting
run: |
dart format . -o none --set-exit-if-changed
- name: Analyze Dart code
run: |
flutter analyze .

0 comments on commit 0b2158e

Please sign in to comment.