version bump for testing #1046
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
unit-test: | |
name: Unit tests on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
# Set up Flutter. | |
- name: Clone Flutter repository with master channel | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter doctor -v | |
# Checkout code and get packages. | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- run: flutter --version | |
- run: flutter pub get | |
# Analyze, check formatting, and run unit tests. | |
- run: flutter analyze | |
- name: Ensure the Dart code is formatted correctly | |
run: dart format --set-exit-if-changed . | |
- name: Run Flutter unit tests | |
run: flutter test |