Showing
1 changed file
with
5 additions
and
7 deletions
| 1 | #The name of your workflow. | 1 | #The name of your workflow. |
| 2 | -name: build | 2 | +name: build |
| 3 | # Trigger the workflow on push or pull request | 3 | # Trigger the workflow on push or pull request |
| 4 | on: | 4 | on: |
| 5 | push: | 5 | push: |
| 6 | - branches: [ master ] | 6 | + branches: [master] |
| 7 | pull_request: | 7 | pull_request: |
| 8 | - branches: [ master ] | 8 | + branches: [master] |
| 9 | #A workflow run is made up of one or more jobs. Jobs run in parallel by default. | 9 | #A workflow run is made up of one or more jobs. Jobs run in parallel by default. |
| 10 | jobs: | 10 | jobs: |
| 11 | - | ||
| 12 | test: | 11 | test: |
| 13 | #The type of machine to run the job on. [windows,macos, ubuntu , self-hosted] | 12 | #The type of machine to run the job on. [windows,macos, ubuntu , self-hosted] |
| 14 | defaults: | 13 | defaults: |
| @@ -24,8 +23,8 @@ jobs: | @@ -24,8 +23,8 @@ jobs: | ||
| 24 | # https://github.com/marketplace/actions/flutter-action | 23 | # https://github.com/marketplace/actions/flutter-action |
| 25 | - uses: subosito/flutter-action@v1 | 24 | - uses: subosito/flutter-action@v1 |
| 26 | with: | 25 | with: |
| 27 | - flutter-version: '1.20.4' | ||
| 28 | - channel: 'stable' | 26 | + flutter-version: "1.22.2" |
| 27 | + channel: "stable" | ||
| 29 | - run: flutter pub get | 28 | - run: flutter pub get |
| 30 | #- run: flutter analyze | 29 | #- run: flutter analyze |
| 31 | # run flutter widgets tests and unit tests | 30 | # run flutter widgets tests and unit tests |
| @@ -33,4 +32,3 @@ jobs: | @@ -33,4 +32,3 @@ jobs: | ||
| 33 | # Upload coverage reports to Codecov | 32 | # Upload coverage reports to Codecov |
| 34 | # https://github.com/marketplace/actions/codecov | 33 | # https://github.com/marketplace/actions/codecov |
| 35 | - uses: codecov/codecov-action@v1.0.7 | 34 | - uses: codecov/codecov-action@v1.0.7 |
| 36 | - |
-
Please register or login to post a comment