-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (37 loc) · 1.31 KB
/
deploy-server_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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
# Repo Action 페이지에 나타날 이름
name: Spring Boot & Gradle CI
# Event Trigger
# main branch에 push 또는 pull request가 발생할 경우 동작
# branch 단위 외에도, tag나 cron 식 등을 사용할 수 있음
on:
pull_request:
branches: [ "main" ]
jobs:
build:
# 실행 환경 지정
runs-on: ubuntu-22.04
timeout-minutes: 10
# Task의 sequence를 명시
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Seoul"
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: |
./gradlew clean build