From 3d69c259c7bc0cbfa7a50539f722edf99ded22de Mon Sep 17 00:00:00 2001 From: LeeCh0129 Date: Tue, 29 Apr 2025 05:02:31 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20CI/CD=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=B4=ED=94=84=EB=9D=BC=EC=9D=B8=20=EA=B5=AC=EC=B6=95=20?= =?UTF-8?q?=EB=B0=8F=20=EB=B9=8C=EB=93=9C=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sync-fork.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml index 6773e1d..c85191d 100644 --- a/.github/workflows/sync-fork.yml +++ b/.github/workflows/sync-fork.yml @@ -1,15 +1,38 @@ -name: Sync Fork +name: CI/CD Pipeline on: push: branches: - main - develop + pull_request: + branches: + - main + - develop workflow_dispatch: jobs: + build-test: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + sync-fork: - runs-on: ubuntu-latest + needs: build-test + runs-on: ubuntu-22.04 + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') steps: - name: Checkout uses: actions/checkout@v3