v2.3.2 #33
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: Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
build | |
key: ${{ runner.OS }}-perfect-freehand-${{ hashFiles('pubspec.lock', '**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }} | |
restore-keys: | | |
${{ runner.OS }}-perfect-freehand-${{ hashFiles('pubspec.lock', '**/pubspec.lock') }}- | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
cache: true | |
cache-key: 'flutter-:os:-:channel:-:version:-:arch:' | |
- run: flutter pub get | |
- name: Run data-driven-fixes tests | |
working-directory: test_fixes | |
run: dart fix --compare-to-golden | |
- name: Run tests | |
run: flutter test --coverage |