Skip to content

Commit aeb3bc3

Browse files
authored
Merge pull request #115 from codeit-maso/feature/chan
🔧 chore: CI/CD 파이프라인 구축 및 빌드 테스트 추가
2 parents 27685e4 + 3d69c25 commit aeb3bc3

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)