Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
janishar committed Jan 24, 2024
1 parent c8ea53b commit 909b669
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/android-unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Android Unit Test

on:
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build and run unit tests
run: ./gradlew testDebug

- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: app/build/test-results

0 comments on commit 909b669

Please sign in to comment.