我的CI运行程序只能运行一行代码。我试图在运行
我还尝试将
我已在Windows主机上安装了GitLab多运行程序。这是我的.gitlab-ci.yml文件。
eslint
之前运行npm install
。如果将npm install
添加到before_script
部分,则只会运行npm install
,构建报告成功,而实际上根本没有运行eslint
。多个命令在windows shell运行程序上不受支持吗?我还尝试将
npm install
移到lint
作业中,但结果相同。我已在Windows主机上安装了GitLab多运行程序。这是我的.gitlab-ci.yml文件。
before_script:
- npm install
stages:
- test
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
lint:
stage: test
tags:
- javascript
script:
- eslint **/*.js