Skip to content

Improve PR workflow #28

Improve PR workflow

Improve PR workflow #28

Workflow file for this run

name: Check PR
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: macos-latest
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: Compile ${{ matrix.flavor }} debug build to verify no-compilation errors
run: ./gradlew compile${{ matrix.flavor }}DebugKotlin