title: flutter analyze works on local but fails in github actions
body: <p>Im using <a href="https://pub.dev/packages/lint" rel="nofollow noreferrer">lint</a> in my flutter project and i applied some rules in my <strong>analysis_options.yaml</strong> that works on local as i expected, but when my workflow on github actions is excecuted (with the same exact code) flutter analyze fails and show me 2 new problems like this one:</p>
  <pre><code> &quot;info • Prefer const over final for declarations • lib/data/remote/user_api_provider.dart:146:7 • prefer_const_declarations
  &quot;
  </code></pre>
  <p>on local &quot;flutter analyze&quot; it cant detect it.</p>
  <p>im very confused, i cant find information on google i dont know how to solve this.</p>
  <p>Im using Flutter 2.2.2 stable and dart 2.13.3 stable.</p>
  <p>Edit:
  This is my workflow</p>
  <pre><code>name: Lint-Analyze
  
  on:  
    pull_request:
      branches:
        - develop
  jobs:
    flutter_analyze:
      name: Run flutter analyze
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
        - uses: actions/setup-java@v1
          with:
            java-version: &quot;12.x&quot;
        - uses: subosito/flutter-action@v1
          with:
            flutter-version: '2.2.2'
            channel: 'stable'
  
        - run: flutter pub get
        - run: flutter analyze
    
  </code></pre>