Create github actions #20
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: Flutter Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Flutter SDK | |
uses: flutter-actions/setup-flutter@v4 | |
with: | |
channel: stable | |
version: 3.27.0 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Flutter doctor | |
run: flutter doctor -v | |
- name: Analyze project source | |
run: dart analyze | |
- name: Run tests | |
run: flutter test |