forked from goxiaoy/flutter_survey_js
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 887 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Analyze & Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Test & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Activate melos
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
dart pub global activate melos 3.1.0
- name: Bootstrap melos
run: melos bs
- name: Run tests
run: melos run test --no-select
- run: |
cd example
flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true
# - name: "Run Analyze"
# run: melos run analyze
# - name: "Pub Check"
# run: |
# melos exec -c 1 --no-private --ignore="*example*" -- \
# flutter pub publish --dry-run