chore(autotest): add git-action script

This commit is contained in:
xiangfangyang-tech 2022-01-04 15:12:23 +08:00
parent 1302e942c5
commit 8060a962f1
1 changed files with 40 additions and 0 deletions

40
.github/workflows/run_broker_tests.yaml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Broker tests
concurrency:
group: apt-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
tags:
# - v*
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: "ghcr.io/emqx/emqx-builder/5.0:23.2.7.2-emqx-2-ubuntu20.04"
outputs:
version: ${{ steps.build_docker.outputs.version}}
steps:
- name: download jmeter
timeout-minutes: 3
env:
JMETER_VERSION: 5.3
run: |
wget --no-verbose --no-check-certificate -O /tmp/apache-jmeter.tgz https://downloads.apache.org/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz
- uses: actions/upload-artifact@v2
with:
name: apache-jmeter.tgz
path: /tmp/apache-jmeter.tgz
- uses: actions/checkout@v2
- name: zip emqx docker image
if: endsWith(github.repository, 'emqx')
run: |
make emqx-docker
echo "::set-output name=version::$(./pkg-vsn.sh)"
docker save -o emqx.tar emqx/emqx:${{ steps.build_docker.outputs.version}}
- uses: actions/upload-artifact@v2
with:
name: emqx.tar
path: ./emqx.tar