Merge pull request #16 from ibiding/dev

Dev
This commit is contained in:
ding 2021-04-10 15:54:21 +08:00 committed by GitHub
commit 8ffad0587c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 19 deletions

View File

@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI name: Look CI
on: on:
push: push:
@ -10,21 +10,15 @@ on:
branches: [ master ] branches: [ master ]
jobs: jobs:
build: deploy:
name: Look deploy
runs-on: self-hosted-runner runs-on: self-hosted
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- uses: actions/checkout@v2 - name: Git Checkout master
- name: Use Node.js ${{ matrix.node-version }} uses: actions/checkout@master
uses: actions/setup-node@v2
with: - name: PM2 status
node-version: ${{ matrix.node-version }} run: pm2 status
- run: npm ci
- run: npm run build --if-present - name: deploy
- run: npm test run: cd server && npm i && npm run start

View File

@ -1,4 +1,4 @@
PORT=80 PORT=8888
# local # local
# Mongodb_url=127.0.0.1:27017/look # Mongodb_url=127.0.0.1:27017/look