chore(autotest): add api test script

This commit is contained in:
xujun540 2021-09-15 17:20:04 +08:00 committed by Rory Z
parent 60e815fb9a
commit 4a4014855f
1 changed files with 9 additions and 8 deletions

View File

@ -2,9 +2,9 @@ name: API Test Suite
on: on:
push: push:
tags: tags:
- e* - e*
- v* - v*
pull_request: pull_request:
jobs: jobs:
@ -13,6 +13,8 @@ jobs:
container: "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04" container: "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
repository: emqx/emqx
- name: zip emqx-broker - name: zip emqx-broker
if: endsWith(github.repository, 'emqx') if: endsWith(github.repository, 'emqx')
run: | run: |
@ -39,6 +41,10 @@ jobs:
- api_clients - api_clients
- api_routes - api_routes
- api_publish - api_publish
- api_user
- api_login
- api_banned
- api_alarms
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -90,11 +96,6 @@ jobs:
with: with:
name: jmeter_logs name: jmeter_logs
path: ./jmeter_logs path: ./jmeter_logs
- uses: actions/upload-artifact@v1
if: failure()
with:
name: jmeter_logs
path: emqx/log
delete-package: delete-package:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
needs: api-test needs: api-test