mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: support linux dart_unit_test (#1653)
Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
parent
c181f91175
commit
b25db83bc0
7
.github/workflows/flutter_ci.yaml
vendored
7
.github/workflows/flutter_ci.yaml
vendored
@ -104,9 +104,4 @@ jobs:
|
||||
- name: Run Flutter unit tests
|
||||
working-directory: frontend
|
||||
run: |
|
||||
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||
cargo make dart_unit_test
|
||||
elif [ "$RUNNER_OS" == "Windows" ]; then
|
||||
cargo make dart_unit_test
|
||||
fi
|
||||
shell: bash
|
||||
cargo make dart_unit_test
|
||||
|
@ -38,5 +38,6 @@ Future<void> editCells(GridTestContext context) async {
|
||||
final controller1 = await context.makeTextCellController(1);
|
||||
|
||||
controller0.saveCellData('A');
|
||||
await gridResponseFuture();
|
||||
controller1.saveCellData('B');
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ impl GridBlockRevisionEditor {
|
||||
|
||||
pub async fn get_row_rev(&self, row_id: &str) -> FlowyResult<Option<(usize, Arc<RowRevision>)>> {
|
||||
if self.pad.try_read().is_err() {
|
||||
tracing::error!("Required GridBlockRevisionPad's read lock failed");
|
||||
tracing::error!("Required grid block read lock failed");
|
||||
Ok(None)
|
||||
} else {
|
||||
let row_rev = self.pad.read().await.get_row_rev(row_id);
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
[tasks.dart_unit_test]
|
||||
script = '''
|
||||
cargo make dart_unit_test_inner
|
||||
cargo make --profile test-macos dart_unit_test_inner
|
||||
'''
|
||||
script_runner = "@shell"
|
||||
|
||||
@ -11,6 +11,12 @@ cargo make --profile test-windows dart_unit_test_inner
|
||||
'''
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.dart_unit_test.linux]
|
||||
script = '''
|
||||
cargo make --profile test-linux dart_unit_test_inner
|
||||
'''
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.dart_unit_test_inner]
|
||||
dependencies = ["build-test-lib"]
|
||||
description = "Run flutter unit tests"
|
||||
|
Loading…
Reference in New Issue
Block a user