-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (58 loc) ยท 2.12 KB
/
pr_weekly_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
name: weekly ๋ธ๋์น PR์ ๋ํ CI ํ
์คํธ
on:
pull_request:
branches:
- 'weekly/**'
jobs:
ci:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- name: ํ๋ก์ ํธ ์ฝ๋๋ฅผ CI ์๋ฒ๋ก ์ฎ๊ฒจ์ค๊ธฐ
uses: actions/checkout@v4
- 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: JDK 21 ์ค์น
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '21'
- name: FCM ์๋น์ค ๊ณ์ ํค ํ์ผ ์์ฑ
run: |
echo '${{ secrets.FCM_SERVICE_ACCOUNT_KEY }}' > ./src/main/resources/everymoment.json
- name: AWS S3 ๊ด๋ จ ์ ๋ณด๋ฅผ ์ค์ ํ์ผ์ ์ฃผ์
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application-prod.yml
env:
spring.datasource.url: ${{ secrets.RDS_URL }}
spring.datasource.username: ${{ secrets.RDS_USERNAME }}
spring.datasource.password: ${{ secrets.RDS_PASSWORD }}
aws.s3.bucket: ${{ secrets.AWS_S3_BUCKET }}
aws.s3.accessKey: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws.s3.secretKey: ${{ secrets.AWS_S3_SECRET_KEY }}
jwt.secret: ${{ secrets.JWT_SECRET }}
- name: ๋น๋ ํ
์คํธ ์ํ
run: |
chmod +x ./gradlew
./gradlew clean build --build-cache --stacktrace
- name: ํ
์คํธ ์ํ ๊ฒฐ๊ณผ ๋ณด๊ณ
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: '**/build/test-results/test/TEST-*.xml'
- name: ํ
์คํธ ์คํจ ์, ์คํจํ ์ฝ๋ ๋ผ์ธ์ ์ฝ๋ฉํธ ์๋ ๋ฑ๋ก
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}