Update sort to v0.7 (#565) #1303
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: CI | |
on: [ push ] | |
jobs: | |
Validate-Gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/setup | |
- name: Gradle Wrapper Validation | |
uses: gradle/[email protected] | |
Build: | |
runs-on: ubuntu-latest | |
needs: [ Validate-Gradle ] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/setup | |
- name: Build Debug APK | |
run: ./gradlew assembleDebug | |
Lint: | |
runs-on: ubuntu-latest | |
needs: [ Build ] | |
strategy: | |
matrix: | |
command: [ detektMain, detektTest, lint, spotlessCheck, checkSortDependencies, licensee ] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/setup | |
- name: Lint | |
run: ./gradlew ${{ matrix.command }} | |
Tests: | |
runs-on: ubuntu-latest | |
needs: [ Build ] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: ./.github/actions/setup | |
- name: Run Unit Tests | |
run: ./gradlew test | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODE_COV_TOKEN }} |