-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.02 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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
code-style:
name: Code style
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Check code style
run: ./gradlew ktlintCheck
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Run tests
run: ./gradlew allTests
- name: Display unit test results
uses: mikepenz/action-junit-report@v4
if: always()
with:
check_name: 'Tests results'
report_paths: '**/build/test-results/**/TEST-*.xml'