MOBILE-2772: Branding update #109
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Lint and Tests | |
on: | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
check_ktlint: | |
name: Check ktlint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Validate code using ktlint | |
run: ./gradlew lintKotlinMain | |
check_tests: | |
needs: check_ktlint | |
name: Check unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Run unit tests (:core) | |
run: ./gradlew :core:testDebugUnitTest | |
- name: Run unit tests (:accounts) | |
run: ./gradlew :accounts:testDebugUnitTest | |
- name: Run unit tests (:in-app-payments) | |
run: ./gradlew :in-app-payments:testDebugUnitTest |