Skip to content

Commit 9c27012

Browse files
Merge pull request #82 from faberNovel/feature/improve_action_testing
Feature/improve action testing
2 parents 123daec + 73527a9 commit 9c27012

File tree

2 files changed

+15
-20
lines changed

2 files changed

+15
-20
lines changed

.github/workflows/ci_action.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,4 @@ jobs:
1818
uses: ./
1919
id: docker-android-action
2020
with:
21-
exec: sh tests/run_tests.sh --android-api 29 --android-ndk --android-build-tools 29.0.3
22-
build_and_test_multiline:
23-
runs-on: ubuntu-18.04
24-
container:
25-
image: docker://docker:stable-git
26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v2
29-
30-
- name: Test action
31-
uses: ./
32-
id: docker-android-action
33-
with:
34-
exec: |
35-
echo "Running Android 29 NDK Tests";
36-
sh tests/run_tests.sh --android-api 29 --android-ndk --android-build-tools 29.0.3;
37-
echo "Running Android 29 Tests";
38-
sh tests/run_tests.sh --android-api 29 --android-build-tools 29.0.3;
39-
echo "Running Android 29 with GCloud Tests";
40-
sh tests/run_tests.sh --android-api 29 --android-build-tools 29.0.3 --gcloud;
21+
exec: sh action/test_action.sh

action/test_action.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# Exit immediately if a command returns a non-zero status.
4+
set -e
5+
6+
# Assert we are running in docker
7+
if [ ! -f /.dockerenv ]; then
8+
exit 1
9+
fi
10+
11+
# Check basic tools
12+
java -version
13+
rbenv -v
14+
adb version

0 commit comments

Comments
 (0)