Showing
1 changed file
with
28 additions
and
0 deletions
.github/workflows/main.yml
0 → 100644
| 1 | +#The name of your workflow. | ||
| 2 | +name: Test, build and deploy | ||
| 3 | +# Trigger the workflow on push or pull request | ||
| 4 | +on: [push,pull_request] | ||
| 5 | +#A workflow run is made up of one or more jobs. Jobs run in parallel by default. | ||
| 6 | +jobs: | ||
| 7 | + | ||
| 8 | + test: | ||
| 9 | + #The type of machine to run the job on. [windows,macos, ubuntu , self-hosted] | ||
| 10 | + runs-on: macos-latest | ||
| 11 | + #sequence of tasks called | ||
| 12 | + steps: | ||
| 13 | + # The branch or tag ref that triggered the workflow will be checked out. | ||
| 14 | + # https://github.com/actions/checkout | ||
| 15 | + - uses: actions/checkout@v1 | ||
| 16 | + # Setup a flutter environment. | ||
| 17 | + # https://github.com/marketplace/actions/flutter-action | ||
| 18 | + - uses: subosito/flutter-action@v1 | ||
| 19 | + with: | ||
| 20 | + flutter-version: '1.17.1' | ||
| 21 | + channel: 'stable' | ||
| 22 | + - run: flutter pub get | ||
| 23 | + # run static analys code | ||
| 24 | + - run: flutter analyze | ||
| 25 | + # run flutter widgets tests and unit tests | ||
| 26 | + - run: flutter test --coverage | ||
| 27 | + # Upload coverage reports to Codecov | ||
| 28 | + # https://github.com/marketplace/actions/codecov |
-
Please register or login to post a comment