Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simplezhli committed Mar 21, 2021
1 parent eee3104 commit 843049b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/deer-issue-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ assignees: ''
- [x] 电脑系统:如:`Windows 10`
- [x] 设备型号:如:`小米MIX 2s`
- [x] 设备系统版本:如 `Android 10`
- [x] Flutter 版本:如 `2.0.2`
- [x] Flutter 版本:如 `2.0.3`

### 具体问题描述 ###

Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/flutter-drive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.2'
flutter-version: '2.0.3'
channel: 'stable' # or: 'dev' or 'beta'
- name: "Run Flutter Driver tests"
run: "flutter drive --target=test_driver/driver.dart"
Expand All @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.2'
flutter-version: '2.0.3'
channel: 'stable' # or: 'dev' or 'beta'
- name: "Run Flutter Driver tests"
# GitHub Action for installing, configuring and running Android Emulators (work only Mac OS)
Expand All @@ -89,28 +89,28 @@ jobs:
# https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.2'
flutter-version: '2.0.3'
channel: 'stable'
- run: "flutter pub get"
- name: "Run Flutter Accessibility Tests"
run: "flutter test test/accessibility_test.dart"

# web_build_and_deploy:
# runs-on: macos-latest
# steps:
# - uses: actions/[email protected]
# - uses: subosito/flutter-action@v1
# with:
# flutter-version: '2.0.2'
# channel: 'stable'
# - name: "Web Build 🔧"
# run: |
# flutter pub get
# flutter build web
# - name: "Web Deploy 🚀"
# # https://github.com/JamesIves/github-pages-deploy-action
# uses: JamesIves/[email protected]
# with:
# token: '${{ secrets.GITHUB_TOKEN }}'
# branch: gh-pages
# folder: build/web
web_build_and_deploy:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.0.3'
channel: 'stable'
- name: "Web Build 🔧"
run: |
flutter pub get
flutter build web
- name: "Web Deploy 🚀"
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/[email protected]
with:
token: '${{ secrets.GITHUB_TOKEN }}'
branch: gh-pages
folder: build/web
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
# Toast插件 https://github.com/OpenFlutter/flutter_oktoast
oktoast: ^3.0.0
# 网络库 https://github.com/flutterchina/dio
dio: ^4.0.0-prev2
dio: ^4.0.0-prev3
# https://github.com/ReactiveX/rxdart
rxdart: ^0.25.0
# Dart 常用工具类库 https://github.com/Sky24n/common_utils
Expand Down Expand Up @@ -59,7 +59,7 @@ dependencies:
# App Shortcuts https://github.com/flutter/plugins/tree/master/packages/quick_actions
quick_actions: 0.5.0
# 刮刮卡 https://github.com/vintage/scratcher
scratcher: ^1.6.0
scratcher: ^2.0.0
# 振动(支持Web) https://github.com/benjamindean/flutter_vibration
vibration: ^1.7.3
# 高德2D地图插件(支持Web) https://github.com/simplezhli/flutter_2d_amap
Expand Down
2 changes: 1 addition & 1 deletion test_driver/setting/setting_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void main([List<String> args = const <String>[]]) {
test('关于我们页测试',() async {
await driver.tap(find.text('关于我们'));
await delayed();
await driver.tap(find.text('作者'));
await driver.tap(find.text('作者博客'));
await Future<dynamic>.delayed(const Duration(seconds: 3));
await driver.tap(find.byTooltip('Back'));
await delayed();
Expand Down

0 comments on commit 843049b

Please sign in to comment.