feat: Robotoff question as a banner or a button #4879
Workflow file for this run
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: SmoothApp Pre-Submit Tests | |
on: | |
pull_request: | |
jobs: | |
build: | |
name: 'Analyze and test' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Get the flutter version from ./flutter-version.txt | |
- run: echo "FLUTTER_VERSION=$(cat flutter-version.txt)" >> $GITHUB_OUTPUT | |
id: flutter-version | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
#channel: stable | |
cache: true | |
flutter-version: ${{ steps.flutter-version.outputs.FLUTTER_VERSION }} | |
cache-key: flutter-${{ hashFiles('flutter-version.txt')}}-${{ hashFiles('packages\smooth_app\pubspec.lock')}} | |
- run: flutter --version | |
# Get dependencies. | |
- name: Get dependencies | |
run: ci/pub_upgrade.sh | |
# Check for formatting issues | |
- name: Check for formatting issues (run "dart format . ") | |
run: dart format --set-exit-if-changed . | |
# analyze Dart for errors | |
- name: Analyze code | |
run: flutter analyze --fatal-infos --fatal-warnings . | |
# Run tests | |
- name: Run Tests with coverage | |
run: ci/testing.sh | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: false |