我创建了一个简单的 Github 操作,用于对每个拉取请求构建和执行测试。没有更改代码后,突然停止工作。这是实际的操作代码:
name: Test pull request
on:
pull_request:
branches: [ develop ]
paths-ignore:
- 'apps/test/**'
- 'apps/test-e2e/**'
- 'libs/angular/**'
jobs:
test_server_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12
- run: npm ci
(...more build commands)
Run Code Online (Sandbox Code Playgroud)
package.json 实际上就是这个,实际上该项目是一个由 NX 管理的 monorepo,带有一些库、一个 NestJS 服务器应用程序和一个 Angular PWA:
{
"name": "sample",
"version": "0.0.1",
"license": "MIT",
"engines": {
"node": "12"
},
"scripts": {
....some scripts
},
"private": true,
"dependencies": {
"@angular/animations": "12.2.0",
"@angular/cdk": "12.2.0",
"@angular/common": "12.2.0",
"@angular/compiler": "12.2.0",
"@angular/core": …Run Code Online (Sandbox Code Playgroud)