enclose in if statement for static analysis #111
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: Static code analysis | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
java-version: 11 | |
distribution: temurin | |
- uses: subosito/[email protected] | |
with: | |
flutter-version: '3.24.3' | |
cache: true | |
- name: Install dependencies for super_tooltip | |
run: flutter pub get | |
# Statically analyze the Dart code for any errors. | |
- run: flutter analyze . |