Skip to content

Commit

Permalink
. e added android studio installation to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yelmuratoff committed May 18, 2024
1 parent 891dfc2 commit 51bfc9b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,28 @@ jobs:
fi
shell: bash

- name: Setup Android Studio
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo snap install androidstudio --classic
elif [[ "${{ runner.os }}" == "macOS" ]]; then
brew install --cask android-studio
elif [[ "${{ runner.os }}" == "Windows" ]]; then
choco install androidstudio
fi
shell: bash

- name: Verify Android Studio installation
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
/snap/bin/studio --version
elif [[ "${{ runner.os }}" == "macOS" ]]; then
"/Applications/Android Studio.app/Contents/MacOS/studio" --version
elif [[ "${{ runner.os }}" == "Windows" ]]; then
"C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe" --version
fi
shell: bash

- name: Build and test
run: |
./bash/build_and_test.sh
Expand Down
2 changes: 1 addition & 1 deletion lib/src/reporters/diff_tool/diff_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class MacDiffTools {
/// `WindowsDiffTools` contains diff tools available on Windows.
final class WindowsDiffTools {
static const DiffInfo visualStudioCode = DiffInfo(
command: 'C:\\Program Files\\Microsoft VS Code\\Code.exe',
command: 'C:\\Program Files\\Microsoft VS Code\\bin\\code',
arg: '-d',
name: 'code',
);
Expand Down

0 comments on commit 51bfc9b

Please sign in to comment.