File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change 1- name : Sync Fork
1+ name : CI/CD Pipeline
22
33on :
44 push :
55 branches :
66 - main
77 - develop
8+ pull_request :
9+ branches :
10+ - main
11+ - develop
812 workflow_dispatch :
913
1014jobs :
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
You can’t perform that action at this time.
0 commit comments