Skip to content

Commit 30c50f4

Browse files
authored
Migrate action from original repo (#2)
Migrated action from original repository https://github.com/vgaidarji/android-github-actions/tree/master/emulator.
1 parent 77fe9a3 commit 30c50f4

File tree

4 files changed

+74
-1
lines changed

4 files changed

+74
-1
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM vgaidarji/docker-android-emulator:v1.0.1
2+
3+
###################
4+
# GitHub Action description
5+
###################
6+
LABEL "com.github.actions.name"="Android Emulator"
7+
LABEL "com.github.actions.description"="Run UI tests on Android emulator"
8+
LABEL "com.github.actions.icon"="smartphone"
9+
LABEL "com.github.actions.color"="green"
10+
11+
LABEL "repository"="https://github.com/vgaidarji/android-github-actions-emulator"
12+
LABEL "homepage"="https://github.com/vgaidarji/android-github-actions-emulator"
13+
LABEL "maintainer"="Veaceslav Gaidarji <[email protected]>"
14+
15+
COPY entrypoint.sh /
16+
17+
ENTRYPOINT ["/entrypoint.sh"]
18+
CMD ["ui-tests-on-emulator"]

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,43 @@
1-
# android-github-actions-emulator
1+
# Android emulator GitHub Action
2+
23
A GitHub Action for running Android UI tests on Android emulator.
4+
5+
# Usage
6+
7+
```yml
8+
- name: "Run UI Tests"
9+
uses: vgaidarji/[email protected]
10+
```
11+
12+
Under the hood the action runs `./gradlew connectedAndroidTest` to run UI tests.
13+
See [ui-tests-on-emulator.sh](https://github.com/vgaidarji/docker-android/blob/master/docker-android-emulator/ui-tests-on-emulator.sh)
14+
script content for more details.
15+
16+
Developed By
17+
------------
18+
19+
* Veaceslav Gaidarji - <[email protected]>
20+
21+
<a href="https://twitter.com/v_gaidarji">
22+
<img alt="Follow me on Twitter" src="http://image.flaticon.com/icons/svg/124/124021.svg" height="40" width="40"/>
23+
</a>
24+
<a href="https://www.linkedin.com/in/veaceslavgaidarji">
25+
<img alt="Add me to Linkedin" src="http://image.flaticon.com/icons/svg/124/124011.svg" height="40" width="40"/>
26+
</a>
27+
28+
License
29+
-------
30+
31+
Copyright 2019 Veaceslav Gaidarji
32+
33+
Licensed under the Apache License, Version 2.0 (the "License");
34+
you may not use this file except in compliance with the License.
35+
You may obtain a copy of the License at
36+
37+
http://www.apache.org/licenses/LICENSE-2.0
38+
39+
Unless required by applicable law or agreed to in writing, software
40+
distributed under the License is distributed on an "AS IS" BASIS,
41+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42+
See the License for the specific language governing permissions and
43+
limitations under the License.

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: 'Android Emulator'
2+
description: 'Run UI tests on Android emulator'
3+
author: 'Veaceslav Gaidarji <[email protected]>'
4+
branding:
5+
icon: 'smartphone'
6+
color: 'green'
7+
runs:
8+
using: 'docker'
9+
image: 'Dockerfile'

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
sh -c "$*"

0 commit comments

Comments
 (0)