Skip to content

Commit

Permalink
server-spring 워크플로우 추가 (Java 서버 구축)
Browse files Browse the repository at this point in the history
빌드 스크립트
- JDK 17 설치 (actions/setup-java)
- Gradle 테스트 실행 (gradle/gradle-build-action)
- Gradle 빌드 실행 (gradle/gradle-build-action)
  • Loading branch information
jihwooon committed Mar 24, 2024
1 parent cecf378 commit 2f3c401
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/server-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: book-store server-spring

on:
push:
branches: [ main ]
paths:
- "server-spring/**"
pull_request:
branches: [ main ]
paths:
- "server-spring/**"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server-spring

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Test with Gradle
user: gradle/gradle-build-action@v2
with:
arguments: test
build-root-directory: server-spring
- name: Build with Gradle
user: gradle/gradle-build-action@v2
with:
arguments: assemble
build-root-directory: server-spring

0 comments on commit 2f3c401

Please sign in to comment.