Update node.js.yml
This commit is contained in:
parent
4ee52c3265
commit
a01498067b
26
.github/workflows/node.js.yml
vendored
26
.github/workflows/node.js.yml
vendored
@ -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,19 +10,15 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
deploy:
|
||||||
|
name: Look deploy
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [14.x]
|
|
||||||
|
|
||||||
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 test
|
- name: deploy
|
||||||
|
run: cd server && npm i && npm run start
|
||||||
|
Loading…
Reference in New Issue
Block a user