Skip to content

Setup GitHub Actions workflow to build and test lib #7

Setup GitHub Actions workflow to build and test lib

Setup GitHub Actions workflow to build and test lib #7

Workflow file for this run

name: Build Test
on:
push:
branches:
- 'task/**'
- 'bug/**'
- 'fix/**'
- 'epic/**'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Chmod permissions
run: sudo chmod +x ./gradlew
- name: Setup Gradle Cache
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
cache-read-only: false
- name: Run Instrumental tests
run: ./gradlew lib:pixel7api34DebugAndroidTest
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
-Pandroid.experimental.androidTest.numManagedDeviceShards=1
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1
--max-workers=1
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: test-results
path: lib/build/outputs/androidTest-results