Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
94 changes: 0 additions & 94 deletions .github/workflows/cd-feat.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/ci-feat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: feature 브랜치 전용 빌드 및 lint 테스트

on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- dev

jobs:
ci-feat:
runs-on: ubuntu-latest
outputs:
lint_results: ${{ steps.lint.outputs.lint_results }}

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

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20" # 프로젝트에서 사용하는 Node.js 버전에 맞게 설정

- name: Install dependencies
run: yarn install

- name: Run Lint
id: lint
run: |
output=$(yarn run lint)
echo "lint_results=$output" >> $GITHUB_OUTPUT

- name: Build project
run: yarn run build # Vite로 프로젝트를 빌드

add_comment:
needs: ci-feat
uses: ./.github/workflows/preview-comment.yaml
with:
content: ${{ needs.ci-feat.outputs.lint_results }}
pr_number: ${{ github.event.pull_request.number }}
40 changes: 0 additions & 40 deletions .github/workflows/delete-feat-bucket.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/preview-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: PR에 Feature 브랜치 주소 코멘트 추가
on:
workflow_call:
inputs:
bucket_name:
content:
required: true
type: string
pr_number:
Expand All @@ -20,5 +20,5 @@ jobs:
- name: comment PR
uses: thollander/actions-comment-pull-request@v3
with:
message: "🍐 배포 주소: ${{ inputs.bucket_name }}.s3-website.ap-northeast-2.amazonaws.com/"
message: ${{inputs.content}}
pr-number: ${{ inputs.pr_number}}
Loading