Skip to content

Commit 5f550ee

Browse files
committed
Add sample apps to PR
Make sure we don't break these from PR changes and make them available for testing. Also rename file to make it more descriptive
1 parent 0dede42 commit 5f550ee

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/android.yml renamed to .github/workflows/pr.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PR test
33
on: [pull_request]
44

55
jobs:
6-
unit_test:
6+
check:
77
runs-on: ubuntu-latest
88

99
steps:
@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-java@v1
2121
with:
2222
java-version: 1.8
23+
2324
- name: Run tests with Gradle
2425
run: ./gradlew testDebug --no-daemon
2526
- name: Archive test results
@@ -28,3 +29,19 @@ jobs:
2829
with:
2930
name: test-results
3031
path: "yoti-sdk/build/reports/tests/"
32+
33+
- name: Build sample-1
34+
run: ./gradlew sample-app:assembleDebug --no-daemon
35+
- name: Upload sample-1
36+
uses: actions/upload-artifact@v1
37+
with:
38+
name: sample-1
39+
path: "sample-app/build/outputs/apk/"
40+
41+
- name: Build sample-2
42+
run: ./gradlew sample-app-2:assembleDebug --no-daemon
43+
- name: Upload sample-2
44+
uses: actions/upload-artifact@v1
45+
with:
46+
name: sample-2
47+
path: "sample-app-2/build/outputs/apk/"

0 commit comments

Comments
 (0)