-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (53 loc) · 1.41 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
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
pull_request:
branches: [ "develop" ]
permissions:
checks: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup MySQL
uses: samin/mysql-action@v1
with:
host port: 3306
container port: 3306
mysql root user: 'mile'
mysql root password: 'mile'
mysql user: 'mile'
mysql password: 'mile'
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name : Setup Redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "7.x"
run: redis-cli ping
- name: create application.yml
run: |
## create application.yml
cd ./module-api/src/main/resources
# application.yml 파일 생성
touch ./application.yml
# GitHub-Actions 에서 설정한 값을 application.yml 파일에 쓰기
echo "${{ secrets.CI_APPLICATION }}" >> ./application.yml
# application.yml 파일 확인
cat ./application.yml
shell: bash
- name: Wait for MySQL
run: |
while ! mysqladmin ping --host=127.0.0.1 --password='mile' --silent; do
sleep 1
done
- name: Build
run: |
chmod +x gradlew
./gradlew clean build
shell: bash