【发布时间】:2022-02-17 23:31:35
【问题描述】:
我正在使用 NodeJS 脚本开发一个 algorand 项目,并使用沙箱进行开发。
注意:我们还使用了 algorand indexer 和沙盒,但没有合约。
出于开发目的,我们可以使用 jest 轻松进行测试,但是当我尝试使用 circle CI 自动化它时,它在测试阶段失败了。
这是我的 .circleci/config.yml 文件::
version: 2.1
orbs:
node: circleci/node@5.0.0
jobs:
build:
docker:
- image: cimg/node:17.5.0
steps:
- checkout
- run: echo "build project"
- run: npm install
- run: npm run build
linting:
docker:
- image: cimg/node:17.5.0
steps:
- checkout
- run: echo "Linting project"
- run: npm install
- run: npm run lint
test:
docker:
- image: cimg/node:17.5.0
steps:
- checkout
- run: echo "Running tests"
- run: npm install
- run: npm run test
workflows:
test_build:
jobs:
- linting
- build
- test:
requires:
- build
我该如何解决这个问题?
【问题讨论】: