Skip to content

Commit

Permalink
Workflow: Added test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
donald-okara committed Nov 17, 2024
1 parent c9c66e1 commit 9a3ddfd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Running Test

on:
pull_request:
types:
- opened
branches:
- 'master'

jobs:
test:
name: Unit tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'

- name: Load Google Service file
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA | base64 -di > app/google-services.json

- name: Grand execute permissions to gradlew
run: chmod +x gradlew

- name: Run unit tests
run: ./gradlew testDebug

0 comments on commit 9a3ddfd

Please sign in to comment.