-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (82 loc) ยท 4.79 KB
/
mealkitary-main-develop-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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Mealkitary main, develop CI
permissions:
contents: write
pull-requests: write
checks: write
on:
pull_request:
branches:
- 'develop'
- 'main'
jobs:
gradle-task-codecov:
if: ${{ contains(github.event.*.labels.*.name, format('run{0} ci', ':')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Firebase ์ํฌ๋ฆฟ ์์ฑ
run: |
echo ${{ secrets.ENCODED_FIREBASE_JSON }} | base64 -d > ./mealkitary-infrastructure/adapter-firebase-notification/src/main/resources/firebase.json
- name: JDK 11 ๊ตฌ์ฑ
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
- name: Gradlew wrapper ์คํ ๊ถํ ๋ถ์ฌ
run: chmod +x gradlew
- name: Gradle ์บ์ฑ
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle ๋น๋
run: ./gradlew clean build --exclude-task asciidoctor
- name: ํ
์คํธ ๊ฒฐ๊ณผ ์ถ๋ ฅ
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
with:
files: |
./mealkitary-api/build/test-results/**/*.xml
./mealkitary-domain/build/test-results/**/*.xml
./mealkitary-application/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-persistence-spring-data-jpa/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-paymentgateway-tosspayments/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-firebase-notification/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-business-registration-number-validator/simple-brn-validator/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-business-registration-number-validator/open-api-brn-validator/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-address-resolver/simple-address-resolver/build/test-results/**/*.xml
./mealkitary-infrastructure/adapter-address-resolver/kakao-api-address-resolver/build/test-results/**/*.xml
- name: Jacoco Coverage ๋ฆฌํฌํธ ์ ์ก
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: |
./mealkitary-api/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-domain/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-application/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-persistence-spring-data-jpa/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-paymentgateway-tosspayments/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-firebase-notification/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-business-registration-number-validator/simple-brn-validator/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-business-registration-number-validator/open-api-brn-validator/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-address-resolver/simple-address-resolver/build/reports/jacoco/test/jacocoTestReport.xml,
./mealkitary-infrastructure/adapter-address-resolver/kakao-api-address-resolver/build/reports/jacoco/test/jacocoTestReport.xml
name: mealkitary-codecov
verbose: true
qodana:
if: ${{ contains(github.event.*.labels.*.name, format('run{0} ci', ':')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Qodana ์ ์ ์ฝ๋ ๋ถ์ ์ํ
uses: JetBrains/[email protected]
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}