Skip to content

Commit

Permalink
Replace check with specific actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Mar 5, 2024
1 parent 8878288 commit 2f85474
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/PR-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
flavor: [Aosp, Google]
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -16,5 +19,11 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Run check
run: ./gradlew check --no-daemon
- 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

0 comments on commit 2f85474

Please sign in to comment.