Skip to content

Commit

Permalink
debug action issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dengnao-tw committed Oct 16, 2023
1 parent 66f56f1 commit e476dbf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/bruno-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e476dbf

Please sign in to comment.