Implement new welcome screen #4
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: Build and test PR against main | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flavor: [Aosp, Google] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Check detekt | |
run: ./gradlew detekt | |
- name: Check lint | |
run: ./gradlew lint | |
- name: Run tests on ${{ matrix.flavor }} flavour | |
run: ./gradlew test${{ matrix.flavor }}DebugUnitTest | |
- name: Assemble ${{ matrix.flavor }} debug build | |
run: ./gradlew assemble${{ matrix.flavor }}Debug |