-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.01 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
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Run ktlint
run: ./gradlew ktlintCheck
- name: Set up application.yml
run: |
mkdir -p src/main/resources
echo "${{ secrets.MAIN_APPLICATION }}" | base64 --decode > src/main/resources/application.yml
mkdir -p src/test/resources
echo "${{ secrets.TEST_APPLICATION }}" | base64 --decode > src/test/resources/application.yml
- name: run test
run: ./gradlew test
- name: run build
run: ./gradlew build -x test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/reports/jacoco/test/jacocoTestReport.xml