-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.31 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
Build:
runs-on: ubuntu-latest
needs: [ Validate-Gradle ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
- name: Build
run: ./gradlew assemble
Lint:
runs-on: ubuntu-latest
needs: [ Build ]
strategy:
matrix:
command: [ detektMain, detektTest, lint, spotlessCheck, checkSortDependencies, licensee, releaseComposeCompilerCheck --rerun-tasks ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
- name: Lint
run: ./gradlew ${{ matrix.command }}
Tests:
runs-on: ubuntu-latest
needs: [ Build ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup
- name: Run Unit Tests
run: ./gradlew test
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODE_COV_TOKEN }}