Skip to content

Commit

Permalink
Add simple unit test job for PR on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoPtr committed Oct 27, 2024
1 parent 8b64eff commit 4f49787
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,28 @@ jobs:
- name: Validate Lint
run: ./gradlew lint

unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'

- name: Mock google-services.json
run: |
cp .github/mock-google-services.json app/google-services.json
cp .github/mock-google-services.json wear/google-services.json
cp .github/mock-google-services.json automotive/google-services.json
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Run test
run: ./gradlew test

pr_build:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 4f49787

Please sign in to comment.