Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github action 적용 #28

Open
wants to merge 75 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 38 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
73d9e0e
#25 github action test
kpeel5839 Mar 15, 2022
1ab9e53
#25 github actio test
kpeel5839 Mar 15, 2022
5bad231
#25 github action test
kpeel5839 Mar 15, 2022
7f27646
#25 github action test
kpeel5839 Mar 15, 2022
f565dde
#25 github action test
kpeel5839 Mar 15, 2022
f330770
#25 github action test
kpeel5839 Mar 15, 2022
a1ce788
#25 github action 실행 실패하는 gradle wrapper 지우고 진행
kpeel5839 Mar 15, 2022
c3dd163
#25 github action test 한번 더
kpeel5839 Mar 15, 2022
0c686f4
#25 github action test
kpeel5839 Mar 15, 2022
f8ed011
#25 github action test
kpeel5839 Mar 15, 2022
1999d8f
#25 github action test
kpeel5839 Mar 15, 2022
911c379
#25 github action test
kpeel5839 Mar 15, 2022
baf4138
#25 github action test
kpeel5839 Mar 15, 2022
d84e444
#25 github action test
kpeel5839 Mar 15, 2022
f1ae38a
#25 github action test
kpeel5839 Mar 15, 2022
2593374
#25 github action test
kpeel5839 Mar 15, 2022
1798926
#25 github action test
kpeel5839 Mar 15, 2022
6b05928
#25 github action test
kpeel5839 Mar 15, 2022
2cb4df3
#25 github action test
kpeel5839 Mar 15, 2022
f8a6038
#25 github action test
kpeel5839 Mar 15, 2022
34f2ae7
#25 github action test
kpeel5839 Mar 15, 2022
ffb5989
#25 github action test
kpeel5839 Mar 15, 2022
b26c45c
#25 github action test
kpeel5839 Mar 15, 2022
b2a828f
#25 github action test
kpeel5839 Mar 15, 2022
fe1cf8f
#25 github action test
kpeel5839 Mar 15, 2022
782fdd6
#25 github action test
kpeel5839 Mar 15, 2022
90f4293
#25 github action test
kpeel5839 Mar 15, 2022
d8676b3
#25 github action test
kpeel5839 Mar 15, 2022
1c1ef02
#25 github action test
kpeel5839 Mar 15, 2022
1bf7fd5
#25 github action test
kpeel5839 Mar 15, 2022
6fa50c5
#25 github action test
kpeel5839 Mar 15, 2022
8125edd
#25 github action test
kpeel5839 Mar 15, 2022
97bc9f1
#25 github action test
kpeel5839 Mar 15, 2022
db52518
#25 github action test
kpeel5839 Mar 15, 2022
dda5a13
#25 github action test
kpeel5839 Mar 15, 2022
862ae2b
#25 github action test
kpeel5839 Mar 15, 2022
23c748f
#25 github action test
kpeel5839 Mar 15, 2022
8b1d582
#25 github action test
kpeel5839 Mar 15, 2022
966744a
#25 github action test
kpeel5839 Mar 15, 2022
143c1f9
#25 github action test
kpeel5839 Mar 15, 2022
568cb63
#25 github action test
kpeel5839 Mar 15, 2022
3a89029
#25 github action test
kpeel5839 Mar 15, 2022
7cf40b7
#25 github action test
kpeel5839 Mar 15, 2022
aaccbe6
#25 github action test
kpeel5839 Mar 15, 2022
a96385c
#25 github action test
kpeel5839 Mar 15, 2022
468c440
#25 github action test
kpeel5839 Mar 15, 2022
474b7ea
#25 github action test
kpeel5839 Mar 15, 2022
6938865
#25 github action test
kpeel5839 Mar 15, 2022
994d1bc
#25 github action test
kpeel5839 Mar 15, 2022
8cc56bc
#25 github action test
kpeel5839 Mar 15, 2022
c4a45f7
#25 github action test
kpeel5839 Mar 15, 2022
edf9505
#25 github action test
kpeel5839 Mar 15, 2022
db03b46
#25 github action test
kpeel5839 Mar 15, 2022
f9f9903
#25 github action test
kpeel5839 Mar 15, 2022
341bd65
#25 github action test
kpeel5839 Mar 15, 2022
d71e43c
#25 github action test
kpeel5839 Mar 15, 2022
edef928
#25
kpeel5839 Mar 15, 2022
3394f05
#25
kpeel5839 Mar 15, 2022
e2111fd
#25
kpeel5839 Mar 15, 2022
d439b0c
#25g=
kpeel5839 Mar 15, 2022
c77f85b
#25
kpeel5839 Mar 15, 2022
8be8d21
#25
kpeel5839 Mar 16, 2022
c4f71ff
#25
kpeel5839 Mar 16, 2022
d85fbb1
#25
kpeel5839 Mar 16, 2022
35f1f02
#25
kpeel5839 Mar 16, 2022
5908652
#25
kpeel5839 Mar 16, 2022
c164d29
#25
kpeel5839 Mar 16, 2022
cd48d7f
#25
kpeel5839 Mar 16, 2022
a9382a2
#25
kpeel5839 Mar 16, 2022
436a096
#25
kpeel5839 Mar 16, 2022
2b54dca
#25
kpeel5839 Mar 16, 2022
b4f8040
#25
kpeel5839 Mar 16, 2022
91134ad
#25
kpeel5839 Mar 16, 2022
10707db
#25
kpeel5839 Mar 16, 2022
5ab71ee
#25
kpeel5839 Mar 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 39 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,53 @@
# This is a basic workflow to help you get started with Actions
name: Spring build gradle

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches:
- develop # 내가 평소에 PR 하기 전 작업하는 branch 에다가 적용

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 문서참고해서 작성해도 되지 않을까요???

branches:
  - main
  - develop

이렇게요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

호모낫 이거 이제 봤어여
빨리 봤었어야 했는데!


pull_request:
branches: [ main ]
branches:
- main # pull request 시에 적용되는 branch 에다가 적용

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
working-directory: /home/runner/work/dogVelopersServer/dogVelopersServer/dogvelopers
key: ${{ secrets.KEY }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# 소스코드들은 11을 위주로 짰음
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# Gradle wrapper 파일 실행 권한주기
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: ${{ env.working-directory }}

# Gradle test를 실행한다
- name: Test with Gradle
run: ./gradlew test
working-directory: ${{ env.working-directory }}

# 테스트 후 Result를 보기위해 Publish Unit Test Results step 추가
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }} # 테스트가 실패하여도 Report를 보기 위해 `always`로 설정
with:
files: dogvelopers/build/test-results/**/*.xml # junit report xml 을 가르킴

- name: gradle build
run: ./gradlew build
working-directory: ${{ env.working-directory }}

- name: send to aws
run: scp -i $key ~/Desktop/dogvelopers.jar [email protected]:~/daemon

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
Empty file added cat
Empty file.
6 changes: 6 additions & 0 deletions dogvelopers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ springBoot {
mainClass = 'com.dogvelopers.dogvelopers.DogvelopersApplication' // build 시 main class 를 찾아주기 위함
}

bootJar{
archivesBaseName = 'dogvelopers'
archiveFileName = 'dogvelopers.jar'
archiveVersion = "0.0.1"
}

test {
useJUnitPlatform() // 이 의존성이 있어야지 , github action 시에 test 돌릴 수 있음
}