Skip to content

Commit

Permalink
#15 [feat] CI.yml 파일 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozo0 committed Jan 5, 2024
1 parent ceed72f commit 8548c4d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: MODDY DEV CI

on:
push:
branched: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
build:
runs-on: ubuntu-22.04
env:
working-directory: moddy-server

steps:
- name: 체크아웃
uses: actions/checkout@v3

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

- name: application.yml 생성
run: |
cd src/main/resources
echo "${{ secrets.APPLICATION }}" > ./application.yml
working-directory: ${{ env.working-directory }}

- name: 빌드
run: |
chmod +x gradlew
./gradlew build -x test
working-directory: ${{ env.working-directory }}
shell: bash

0 comments on commit 8548c4d

Please sign in to comment.