Skip to content

Commit 51bfc9b

Browse files
committed
. e added android studio installation to actions
1 parent 891dfc2 commit 51bfc9b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/build_and_test.yml

+22
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,28 @@ jobs:
4040
fi
4141
shell: bash
4242

43+
- name: Setup Android Studio
44+
run: |
45+
if [[ "${{ runner.os }}" == "Linux" ]]; then
46+
sudo snap install androidstudio --classic
47+
elif [[ "${{ runner.os }}" == "macOS" ]]; then
48+
brew install --cask android-studio
49+
elif [[ "${{ runner.os }}" == "Windows" ]]; then
50+
choco install androidstudio
51+
fi
52+
shell: bash
53+
54+
- name: Verify Android Studio installation
55+
run: |
56+
if [[ "${{ runner.os }}" == "Linux" ]]; then
57+
/snap/bin/studio --version
58+
elif [[ "${{ runner.os }}" == "macOS" ]]; then
59+
"/Applications/Android Studio.app/Contents/MacOS/studio" --version
60+
elif [[ "${{ runner.os }}" == "Windows" ]]; then
61+
"C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe" --version
62+
fi
63+
shell: bash
64+
4365
- name: Build and test
4466
run: |
4567
./bash/build_and_test.sh

lib/src/reporters/diff_tool/diff_tools.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class MacDiffTools {
1818
/// `WindowsDiffTools` contains diff tools available on Windows.
1919
final class WindowsDiffTools {
2020
static const DiffInfo visualStudioCode = DiffInfo(
21-
command: 'C:\\Program Files\\Microsoft VS Code\\Code.exe',
21+
command: 'C:\\Program Files\\Microsoft VS Code\\bin\\code',
2222
arg: '-d',
2323
name: 'code',
2424
);

0 commit comments

Comments
 (0)