-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1019 Bytes
/
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
name: MODDY DEV CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-22.04
env:
working-directory: moddy-server
steps:
- name: 체크아웃
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Setup MySQL
uses: samin/mysql-action@v1
with:
character set server: 'utf8'
mysql database: 'moddy'
mysql user: 'moddy'
mysql password: ${{ secrets.DatabasePassword }}
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 6
- name: application.yml 생성
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application.yml
- name: 빌드
run: |
chmod +x gradlew
./gradlew build -x test
./gradlew test
shell: bash