Skip to content

Commit

Permalink
Merge branch 'main' into refactor/#121
Browse files Browse the repository at this point in the history
  • Loading branch information
Creative-Lee authored Jul 28, 2023
2 parents a4f10b4 + 09069e7 commit 9342914
Show file tree
Hide file tree
Showing 12 changed files with 1,443 additions and 333 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@ name: Backend CI
# 해당 workflow가 언제 실행될 것인지에 대한 트리거를 지정
on:
pull_request:
branches: [ main ] # main branch로 pull request될 때 실행됩니다.
branches: [main] # main branch로 pull request될 때 실행됩니다.
types: [opened, synchronize, reopened]
paths:
- "backend/**"


defaults:
run:
working-directory: backend

# workflow는 한개 이상의 job을 가지며, 각 job은 여러 step에 따라 단계를 나눌 수 있습니다.
jobs:
build:
build:
name: CI
# 해당 jobs에서 아래의 steps들이 어떠한 환경에서 실행될 것인지를 지정합니다.(우리가 확인하고 싶은 것은 build가 되는 것과 test를 통과하는 여부를 알고 싶음)
runs-on: ubuntu-latest

steps:
# 작업에서 액세스할 수 있도록 $GITHUB_WORKSPACE에서 저장소를 체크아웃합니다.
- name: Pull Repository
uses: actions/checkout@v3
# 작업에서 액세스할 수 있도록 $GITHUB_WORKSPACE에서 저장소를 체크아웃합니다.
- name: Pull Repository
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v2 # 자바를 설치하는 명렁어
with:
Expand All @@ -34,12 +32,12 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash

- name: Build with Gradle
run: ./gradlew build
shell: bash
- name: Comment on test result

- name: Comment on test result
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,22 @@ on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths:
- 'frontend/**'

jobs:
test:
runs-on: ubuntu-latest
env:
working-directory: ./frontend

strategy:
matrix:
node-version: [18.16.1]
node-version: '18.16.1'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.node-version }}

- name: Cache dependencies
id: cache
Expand Down
3 changes: 2 additions & 1 deletion frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
.env
Loading

0 comments on commit 9342914

Please sign in to comment.