|
3 | 3 |
|
4 | 4 | name: Master.js CI |
5 | 5 |
|
6 | | -on: |
| 6 | +on: |
7 | 7 | push: |
8 | 8 | branches: [ master ] |
9 | 9 | pull_request: |
10 | 10 | branches: [ master ] |
11 | 11 |
|
| 12 | + |
12 | 13 | jobs: |
13 | 14 | build: |
14 | | - |
15 | 15 | runs-on: docs.plus |
16 | | - |
17 | 16 | strategy: |
18 | 17 | matrix: |
19 | | - node-version: [14.x] |
20 | | - |
| 18 | + node-version: [12.x] |
21 | 19 | steps: |
22 | 20 | - uses: actions/checkout@v2 |
23 | 21 | - name: Use Node.js ${{ matrix.node-version }} |
24 | 22 | uses: actions/setup-node@v1 |
25 | 23 | with: |
26 | 24 | node-version: ${{ matrix.node-version }} |
27 | | - - run: npm run build --if-present |
28 | | - - run: chmod 755 ./node_modules/ep_etherpad-lite/node/server.js |
29 | | - - run: DB_NAME=handbook pm2 start ecosystem.config.js --only ${GITHUB_REF#refs/heads/} |
30 | | - - run: DB_NAME=handbook pm2 reload pm2.start.config.js --only ws_${GITHUB_REF#refs/heads/} |
| 25 | + |
| 26 | + - name: Install Etherpad plugins |
| 27 | + run: > |
| 28 | + npm install --no-save --legacy-peer-deps |
| 29 | + ep_adminpads2 |
| 30 | + https://github.com/samirsayyad/ep_bottom_chat_bar |
| 31 | + https://github.com/ether/ep_comments_page |
| 32 | + https://github.com/ether/ep_cursortrace |
| 33 | + https://github.com/samirsayyad/ep_custom_header_message |
| 34 | + https://github.com/samirsayyad/ep_docs_plus_customize#c68bc28 |
| 35 | + https://github.com/samirsayyad/ep_full_hyperlinks#27910fb |
| 36 | + https://github.com/samirsayyad/ep_headings2#f88ac17 |
| 37 | + ep_hide_line_numbers |
| 38 | + https://github.com/samirsayyad/ep_insert_media#35b26c5 |
| 39 | + https://github.com/samirsayyad/ep_loading_pad#84a888f |
| 40 | + ep_monetization |
| 41 | + https://github.com/samirsayyad/ep_profile_modal#513e955 |
| 42 | + ep_remove_embed |
| 43 | + https://github.com/samirsayyad/ep_set_title_on_pad#b1688b0 |
| 44 | + https://github.com/samirsayyad/ep_table_of_contents#326ccfc |
| 45 | + https://github.com/HMarzban/ep_wrtc_heading#1fd4e08 |
| 46 | + # https://github.com/ether/ep_sticky_attributes.git |
| 47 | +
|
| 48 | + - name: Install all dependencies and symlink for ep_etherpad-lite |
| 49 | + run: src/bin/installDeps.sh |
| 50 | + |
| 51 | + - name: Run pm2 docsplus instance |
| 52 | + run: DB_NAME=handbook pm2 start temp/ecosystem.config.js --only ${GITHUB_REF#refs/heads/} |
| 53 | + |
| 54 | + - name: Run pm2 ws.router instance |
| 55 | + run: DB_NAME=handbook pm2 reload temp/pm2.start.config.js --only ws_${GITHUB_REF#refs/heads/} |
| 56 | + |
31 | 57 | env: |
32 | 58 | DB_USER : ${{secrets.PG_USER}} |
33 | 59 | DB_PASS : ${{secrets.PG_PASS}} |
34 | 60 | DB_HOST : ${{secrets.PG_HOST}} |
| 61 | + DB_TYPE : postgres |
| 62 | + DB_PORT : ${{secrets.PG_PORT}} |
35 | 63 | MEDIA_BUCKET_NAME : ${{secrets.MEDIA_BUCKET_NAME}} |
36 | 64 | BUCKET_S3_SERVER : ${{secrets.BUCKET_S3_SERVER}} |
37 | 65 | ACCESS_KEY_SECRET : ${{secrets.ACCESS_KEY_SECRET}} |
38 | 66 | ACCESS_KEY_ID : ${{secrets.ACCESS_KEY_ID}} |
39 | | - DB_TYPE : postgres |
40 | | - DB_PORT : ${{secrets.PG_PORT}} |
41 | | - PORT : 9001, |
|
0 commit comments