-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.05 KB
/
backend-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
# workflow 이름
name: 백엔드 CI
# event trigger
on:
# 해당 브랜치로 PR 될 때 실행됩니다.
pull_request:
branches:
- develop
- main
permissions:
contents: read
jobs:
build:
if: github.repository == 'COFLLL/CoverFlow-BE'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
## JDK Setting
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
- name: set up TimeZone
run: |
sudo timedatectl set-timezone Asia/Seoul
## application.yml 파일을 생성합니다.
- name: make application.yml
run: |
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.APPLICATION }}" > ./application.yml
shell: bash
## gradlew 실행 권한 부여
- name: Grant execute permisson for gradlew
run: chmod +x gradlew
- name: Build with Gradle (without Test)
run: ./gradlew clean build -x test --stacktrace