-
Notifications
You must be signed in to change notification settings - Fork 98
33 lines (32 loc) · 1.27 KB
/
jgiven_android_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: "Build and test android plugin and projects"
on: [push, pull_request]
jobs:
build:
name: Build and test android
runs-on: macos-latest
env:
ANDROID: true
steps:
- uses: actions/checkout@v4.1.1
- name: Set upt JDK 17
uses: actions/setup-java@v3.13.0
with:
java-version: 17
distribution: 'adopt'
- name: Grant execute permission for bash script
run: chmod +x scripts/local_android_release_with_version.sh
- name: Load the bash script
run: source scripts/local_android_release_with_version.sh
- name: Test Android plugin and Android example project
uses: reactivecircus/android-emulator-runner@v2.28.0
with:
api-level: 29
script: source scripts/source_files/helper_functions.sh && runAndroidTestOnGivenProject jgiven-android-test/build.gradle 1.1-t && runAndroidTestOnGivenProject example-projects/android/build.gradle 1.1-t
- name: Upload test results html files
continue-on-error: true
if: ${{failure()}}
uses: actions/upload-artifact@v3.1.3
with:
name: test-report-example-projects
path: /home/runner/work/JGiven/JGiven/example-projects/*/build/reports/tests
if-no-files-found: ignore