Skip to content

create a pull request workflow to run the tests #1

create a pull request workflow to run the tests

create a pull request workflow to run the tests #1

#name: Pull Request Tests
#
#on:
# pull_request:
# branches: [ "main" ]
#
#jobs:
# test:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
# - name: set up JDK 17
# uses: actions/setup-java@v3
# with:
# java-version: '17'
# distribution: 'zulu'
# cache: gradle
#
# - name: Cache Gradle packages
# uses: actions/cache@v2
# with:
# path: |
# ~/.gradle/caches
# ~/.gradle/wrapper
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
# restore-keys: |
# ${{ runner.os }}-gradle-
#
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
#
# - name: Run Unit Tests
# run: ./gradlew test
#
# - name: Run Instrumentation Tests
# run: ./gradlew connectedAndroidTest