【发布时间】:2021-09-10 08:53:42
【问题描述】:
一个月前,我为我的 Express.js RESTapi 项目设置了 GitHub 工作流。那些日子我工作得很好。但是现在当我今天尝试运行相同的内容时,它会卡在屏幕上
开始工作流运行
# 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
name: DEV BUILD
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
node-version: [ 14.x,15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: rm package-lock.json
- run: npm i
- run: pm2 restart app.js
这个文件有什么问题?有没有办法查看日志文件以便我知道出了什么问题?
任何帮助! 提前致谢。 =)
【问题讨论】:
标签: continuous-integration yaml github-actions continuous-deployment