Added settings dialog tests #7
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Elastic | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
formatting-analysis: | |
name: "Check Formatting & Analyze" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/[email protected] | |
with: | |
cache: true | |
cache-path: ${{ runner.tool_cache }}/flutter/linux | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed lib/* test/* | |
- name: Analyze project source | |
run: flutter analyze --no-fatal-infos --no-fatal-warnings | |
test: | |
name: "Run Tests" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/[email protected] | |
with: | |
cache: true | |
cache-path: ${{ runner.tool_cache }}/flutter/linux | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Generate mocks | |
run: dart run build_runner build --delete-conflicting-outputs | |
- name: Run tests | |
run: flutter test | |