Skip to content

Commit

Permalink
feat : (#6) github actions를 이용한 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kssumin committed Sep 26, 2023
1 parent e19ca82 commit 186f379
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci

on:
pull_request:
branches:
- weekly # 'weekly' 브랜치로 PR이 생성될 때만 실행

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'

- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Build and Test
run: ./gradlew clean build
- name: Run Spring Boot App for 30 seconds
run: |
./gradlew bootRun &
APP_PID=$!
sleep 30
kill $APP_PID
continue-on-error: false

0 comments on commit 186f379

Please sign in to comment.