Skip to content

Commit 4d7bb45

Browse files
authored
Enable tests on Android (#248)
1 parent 676b45f commit 4d7bb45

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

.github/workflows/io_file.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,33 @@ jobs:
9696
- name: 🪑 Run Write Benchmarks
9797
run: dart --enable-experiment=native-assets run benchmarks/write_as_bytes.dart
9898

99+
android-vm-test:
100+
runs-on: ubuntu-latest
101+
timeout-minutes: 30
102+
defaults:
103+
run:
104+
working-directory: pkgs/io_file/mobile_test
105+
steps:
106+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
107+
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
108+
with:
109+
channel: master
110+
- name: Enable KVM group perms
111+
run: |
112+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
113+
sudo udevadm control --reload-rules
114+
sudo udevadm trigger --name-match=kvm
115+
- name: Run tests
116+
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed
117+
with:
118+
api-level: 21
119+
disable-animations: true
120+
arch: x86_64
121+
target: default
122+
script: 'cd pkgs/io_file/mobile_test &&
123+
flutter pub get &&
124+
flutter test integration_test --reporter=failures-only --test-randomize-ordering-seed=random'
125+
99126
ios-vm-test:
100127
runs-on: macos-latest
101128
defaults:

pkgs/io_file/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ See
1212
| :--- | :---: | :---: | :---: | :---: | :----: | :--------: | :----------: |
1313
| canonicalize path | | | | | | | |
1414
| copy file | | | | | | | |
15-
| create directory | ||||| | |
15+
| create directory | ||||| | |
1616
| create hard link | | | | | | | |
1717
| create symbolic link | | | | | | | |
18-
| create tmp directory | ||||| | |
18+
| create tmp directory | ||||| | |
1919
| create tmp file | | | | | | | |
20-
| delete directory | ||||| | |
20+
| delete directory | ||||| | |
2121
| delete file | | | | | | |
22-
| delete tree | ||||| | |
22+
| delete tree | ||||| | |
2323
| enum dir contents | | | | | | | |
2424
| exists | | | | | | |
25-
| get metadata (stat) | ||||| | |
26-
| identity (same file) | ||||| | |
25+
| get metadata (stat) | ||||| | |
26+
| identity (same file) | ||||| | |
2727
| open | | | | | | |
28-
| read file (bytes) | ||||| | |
28+
| read file (bytes) | ||||| | |
2929
| read file (lines) | | | | | | | |
3030
| read file (string) | | | | | | | |
31-
| rename | ||||| | |
31+
| rename | ||||| | |
3232
| set permissions | | | | | | | |
33-
| write file (bytes) | ||||| | |
34-
| write file (string) | ||||| | |
33+
| write file (bytes) | ||||| | |
34+
| write file (string) | ||||| | |
3535

3636
### File
3737

0 commit comments

Comments
 (0)