-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.22 KB
/
multiplatform_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
42
43
44
45
46
47
48
49
50
51
52
name: Multiplatform CI
on:
push:
branches: [ main ]
paths:
- .github/actions/*
- .github/workflows/multiplatform_ci.yml
- taskodoro/*
- build.gradle.kts
- settings.gradle.kts
pull_request:
types: [ opened, synchronize, ready_for_review, reopened ]
branches: [ main ]
paths:
- .github/actions/*
- .github/workflows/multiplatform_ci.yml
- taskodoro/*
- build.gradle.kts
- settings.gradle.kts
concurrency:
group: multiplatform-${{ github.ref }}
cancel-in-progress: true
jobs:
static-analysis:
name: Build & Test
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Gradle
uses: ./.github/actions/gradle-setup
- name: Run Spotless
run: ./gradlew spotlessCheck
- name: Run Detekt
run: ./gradlew taskodoro:detekt
- name: Build
run: |
./gradlew taskodoro:clean taskodoro:assemble
./gradlew infra:database:clean infra:database:assemble
./gradlew infra:preferences:clean infra:preferences:assemble
- name: Run Unit Tests
run: ./gradlew taskodoro:clean taskodoro:allTests