尝试在部署到 Firebase 之前进行自动测试。为什么使用此 yaml 配置未运行测试?
jobs:
build-prod:
docker:
- image: circleci/node:10.16.3-stretch
working_directory: ~/project
steps:
- checkout
- run:
name: Install Firebase
command: sudo npm install -g firebase-tools
- run:
name: NPM Install
command: cd ./functions && npm install && cd -
- run:
name: Run tests
command: cd ./functions && npm run test:integration && cd -
只显示
> functions@ ****:integration /home/circleci/project/functions
> mocha ./src/****/integration/**/*.js
0 passing (3ms)