Skip to content

Commit 3d69c25

Browse files
committed
๐Ÿ”ง chore: CI/CD ํŒŒ์ดํ”„๋ผ์ธ ๊ตฌ์ถ• ๋ฐ ๋นŒ๋“œ ํ…Œ์ŠคํŠธ ์ถ”๊ฐ€
1 parent 27685e4 commit 3d69c25

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

โ€Ž.github/workflows/sync-fork.ymlโ€Ž

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
1-
name: Sync Fork
1+
name: CI/CD Pipeline
22

33
on:
44
push:
55
branches:
66
- main
77
- develop
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
812
workflow_dispatch:
913

1014
jobs:
15+
build-test:
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '20'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Build
30+
run: npm run build
31+
1132
sync-fork:
12-
runs-on: ubuntu-latest
33+
needs: build-test
34+
runs-on: ubuntu-22.04
35+
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
1336
steps:
1437
- name: Checkout
1538
uses: actions/checkout@v3

0 commit comments

Comments
ย (0)