Update codeql.yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dart and Flutter Static Analysis | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
analyze: | |
name: Analyze Dart Code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Set up Flutter with a specific version | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.5' | |
# Install dependencies | |
- name: Install dependencies | |
run: flutter pub get | |
# Run Dart/Flutter static analysis | |
- name: Run Flutter Analyze | |
run: flutter analyze | |
# Run Dart Unit tests | |
- name: Run Flutter tests | |
run: flutter test |