|
@@ -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
|