-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.17 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
name: CI
on:
pull_request:
branches:
- develop
types: [ opened, synchronize, reopened ]
jobs:
build:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
kotlin-version: [ "1.8.22" ]
java-version: [ "17" ]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Kotlin
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
kotlin-version: ${{ matrix.kotlin-version }}
distribution: 'adopt'
# 자동 Ktlint 체크 자동화
- name: ktlint check
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.GITHUBTOKEN }}
reporter: github-pr-check
# ktlint_version: "1.0.0"
continue-on-error: true # 실패해도 계속 진행
# 빌드
- name: Gradle Clean & Build
run: ./gradlew clean build
# jacoco, sonarcube
- name: test and analyze
run: ./gradlew test sonar --info
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}