test #1502
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: test | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# Run the quality job at 4am every day | |
- cron: '0 4 * * *' | |
jobs: | |
test: | |
# This job will run on ubuntu virtual machine | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
# Setup the flutter environment. | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
# Get flutter dependencies. | |
- run: flutter pub get | |
# Check for any formatting issues in the code. | |
- run: dart format --set-exit-if-changed . | |
# Statically analyze the Dart code for any errors. | |
- run: flutter analyze . | |
# Do the same for examples | |
- run: flutter analyze . | |
working-directory: ./example | |
# Run widget tests for our flutter project. | |
- run: flutter test |