From 2f3c40147f2ea6ba02e4e2e9673783d93de809f5 Mon Sep 17 00:00:00 2001 From: jihwooon Date: Mon, 25 Mar 2024 02:53:48 +0900 Subject: [PATCH] =?UTF-8?q?server-spring=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=B6=94=EA=B0=80=20(Java=20=EC=84=9C?= =?UTF-8?q?=EB=B2=84=20=EA=B5=AC=EC=B6=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 빌드 스크립트 - JDK 17 설치 (actions/setup-java) - Gradle 테스트 실행 (gradle/gradle-build-action) - Gradle 빌드 실행 (gradle/gradle-build-action) --- .github/workflows/server-java.yml | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/server-java.yml diff --git a/.github/workflows/server-java.yml b/.github/workflows/server-java.yml new file mode 100644 index 0000000..1e1b69d --- /dev/null +++ b/.github/workflows/server-java.yml @@ -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 +