Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
janishar committed Jan 24, 2024
1 parent db9c2b1 commit 336c09f
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/android-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,28 @@ on:
branches: [ "main" ]

jobs:
test-feature:
runs-on: macOS-latest
build:

needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '18'

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

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

- name: Run Tests with Gradle
run: ./gradlew test
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: app/build/test-results

0 comments on commit 336c09f

Please sign in to comment.