Skip to content

Commit 80fdf27

Browse files
authored
Create dart.yml
1 parent 341b92c commit 80fdf27

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/dart.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#The name of your workflow.
2+
name: build
3+
# Trigger the workflow on push or pull request
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
#A workflow run is made up of one or more jobs. Jobs run in parallel by default.
10+
jobs:
11+
test:
12+
#The type of machine to run the job on. [windows,macos, ubuntu , self-hosted]
13+
defaults:
14+
run:
15+
working-directory: ./
16+
runs-on: ubuntu-latest
17+
#sequence of tasks called
18+
steps:
19+
# The branch or tag ref that triggered the workflow will be checked out.
20+
# https://github.com/actions/checkout
21+
- uses: actions/checkout@v1
22+
# Setup a flutter environment.
23+
# https://github.com/marketplace/actions/flutter-action
24+
- uses: subosito/flutter-action@v1
25+
with:
26+
flutter-version: "2.0.2"
27+
channel: "stable"
28+
- run: flutter pub get
29+
#- run: flutter analyze
30+
# run flutter widgets tests and unit tests
31+
- run: flutter test --coverage
32+
# Upload coverage reports to Codecov
33+
# https://github.com/marketplace/actions/codecov
34+
- uses: codecov/codecov-action@v1.0.7

0 commit comments

Comments
 (0)