Skip to content

Commit fe092c4

Browse files
committed
refactor: yml에 CI 추가하여 이름 변경
1 parent 3b89687 commit fe092c4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
1-
name: Synchronize to forked repo
1+
name: Continuous Integration and Synchronization
22
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
35
push:
46
branches:
57
- develop
68

79
jobs:
10+
quality:
11+
name: CI: Check quality
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Install dependencies
18+
run: npm install --legacy-peer-deps
19+
20+
- name: Checking
21+
run: npm run lint && npm run lint:type && npm run lint:eslint && npm run lint:prettier
22+
823
sync:
924
name: Sync forked repo
1025
runs-on: ubuntu-latest
26+
needs: quality
27+
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
1128

1229
steps:
1330
- name: Checkout develop

0 commit comments

Comments
 (0)