diff --git a/.github/workflows/bruno-cli.yml b/.github/workflows/bruno-cli.yml index 26dd121..4d30bdb 100644 --- a/.github/workflows/bruno-cli.yml +++ b/.github/workflows/bruno-cli.yml @@ -15,9 +15,5 @@ jobs: steps: - uses: actions/checkout@v3 - run: npm install - - name: install bru-cli - run: npm i @usebruno/cli -g - - name: Change directory - run: cd api-collections - name: run tests run: bru run --env demo diff --git a/README.md b/README.md index ac70117..ee29460 100644 --- a/README.md +++ b/README.md @@ -304,26 +304,21 @@ expect(data.title).to.contains('provident'); - [x] 新建项目文件夹(示例名为:bruno-test) - [x] 项目文件夹下执行 npm init 将项目初始化为 npm 项目 - [x] 安装 @usebruno/cli 依赖 (脚本为:npm install @usebruno/cli) -- [x] 打开保存 API 请求集的文件夹目录,将 api-collects 目录复制到 bruno-test 项目目录下下 +- [x] 打开保存 API 请求集的文件夹目录,将 api-collects 目录下的所有文件都复制到 bruno-test 项目目录下下 - [x] 项目目录如下所示 ```javascript bruno-test //项目主文件夹 - api-collects //api 请求集 - api request1.bru //api 请求 - enviroments //环境变量 - demo.bru - bruno.json + api request1.bru //api 请求 + enviroments //环境变量 + demo.bru + bruno.json node_modules //node 包依赖 package-lock.json package.json //npm 项目配置文件 ``` -- [x] 先进入 api-collects 目录,再运行接口自动化脚本 - -```bash - cd api-collects -``` +- [x] 运行接口自动化脚本 ```javascript bruno run --env demo diff --git a/api-collections/api request1.bru b/api request1.bru similarity index 100% rename from api-collections/api request1.bru rename to api request1.bru diff --git a/api-collections/bruno.json b/bruno.json similarity index 100% rename from api-collections/bruno.json rename to bruno.json diff --git a/api-collections/environments/demo.bru b/environments/demo.bru similarity index 100% rename from api-collections/environments/demo.bru rename to environments/demo.bru