Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add pull request testing workflow #133

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Pull Request Workflow

on:
pull_request:
branches: [ "develop" ] # Trigger on PRs to main branch
types: [opened, synchronize, reopened] # Trigger on PR events

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'

# Allow us to run the command
- name: Change wrapper permissions
run: chmod +x ./gradlew

# Run Build & Test the Project
- name: Build gradle project
run: ./gradlew build

- name: Build test project
run: ./gradlew :app:assembleAndroidTest -DtestBuildType=debug

- name: Run tests on Firebase Test Lab
uses: asadmansr/Firebase-Test-Lab-Action@v1.0
with:
arg-spec: '.github/firebase-tests.yml:android-pixel-7'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}

Loading