Skip to content

Commit

Permalink
uprade to v0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Jun 7, 2021
1 parent 6cc6997 commit 2d0775a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,4 @@ jobs:
node-version: "14.x"
- run: yarn
- run: yarn lint
- run: yarn test

- name: whether create tag
run: |
message="${{ github.event.head_commit.message }}"
if [[ "${{ github.event_name }}" == "push" && "$message" =~ ^upgrade\ to\ v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "to_create_tag=${message:12}" >> $GITHUB_ENV
fi
- name: create tag
uses: actions/github-script@v3
if: ${{ env.to_create_tag }}
with:
github-token: ${{ github.token }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/v${{ env.to_create_tag }}",
sha: context.sha
})
- run: yarn test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ The test cases in the group will inherit the group's `@client` and `@mixin`. The
**Use mock function to generate data**
> scope: unit req block
Apitest supports nearly 40 mock functions. For a detailed list, see [sigodne/fake.js](https://github.com/sigoden/fake-js#doc)
Apitest supports nearly 40 mock functions. For a detailed list, see [fake-js](https://github.com/sigoden/fake-js#doc)

### @file

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ main
- 功能: 使用mock函数生成数据
- 使用范围: 用例`req`数据块

Apitest 支持近40个mock函数。详细清单见[sigodne/fake.js](https://github.com/sigoden/fake-js#doc)
Apitest 支持近40个mock函数。详细清单见[fake-js](https://github.com/sigoden/fake-js#doc)

### @file

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sigodenjs/apitest",
"description": "declartive api testing tool",
"version": "0.9.0",
"version": "0.9.1",
"bin": {
"apitest": "dist/bin.js"
},
Expand Down

0 comments on commit 2d0775a

Please sign in to comment.