-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.26 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on: [ push ]
jobs:
Validate-Gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: ./.github/actions/setup
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
Build:
runs-on: ubuntu-latest
needs: [ Validate-Gradle ]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: ./.github/actions/setup
- name: Build Debug APK
run: ./gradlew assembleDebug
Lint:
runs-on: ubuntu-latest
needs: [ Build ]
strategy:
matrix:
command: [ detekt, lint, spotlessCheck, checkSortDependencies, licensee ]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: ./.github/actions/setup
- name: Lint
run: ./gradlew ${{ matrix.command }}
Tests:
runs-on: ubuntu-latest
needs: [ Build ]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: ./.github/actions/setup
- name: Run Unit Tests
run: ./gradlew test
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODE_COV_TOKEN }}