| name: Test dashboard |
| |
| on: |
| pull_request: |
| branches: [main] |
| paths: |
| - "dashboard/**" |
| - "packages/cocoon_common/**" |
| - ".github/workflows/dashboard_tests.yaml" |
| push: |
| branches: [main] |
| |
| jobs: |
| test-dashboard: |
| runs-on: ubuntu-latest |
| defaults: |
| run: |
| working-directory: dashboard |
| |
| steps: |
| - name: Set up Flutter |
| uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e |
| with: |
| channel: stable |
| architecture: x64 # only needed for running locally (mac) |
| |
| - name: Checkout code |
| uses: actions/checkout@v6 |
| |
| - name: Get packages |
| run: | |
| flutter packages get |
| |
| - name: Flutter Analyze |
| run: | |
| flutter analyze --no-fatal-infos |
| |
| - name: Dart Format |
| run: | |
| dart format --set-exit-if-changed . |
| |
| - name: Flutter Test |
| run: | |
| flutter test --test-randomize-ordering-seed=random --reporter expanded |