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 909b669 commit db9c2b1
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/android-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,27 @@ name: Android Unit Test

on:
push:
branches:
- main
branches: [ "main" ]
pull_request:
branches: [ "main" ]

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

runs-on: ubuntu-latest
needs: build

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

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

- name: Grant execute permission for gradlew
run: chmod +x gradlew
java-version: '18'

- name: Build and run unit tests
run: ./gradlew testDebug
- name: Grant execute permissions for gradlew
run: chmod +x ./gradlew

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

0 comments on commit db9c2b1

Please sign in to comment.