From 1f8c6c14a3be0d3cbd239be6b5cad43274efdabd Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Fri, 24 May 2024 11:36:39 +0200 Subject: [PATCH] ci: add package test for mac and use OTP 25 for PR tests --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a831f43..a7a1fc3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: otp: - - "26.2.3-1" + - "25.3.2-2" os: - ubuntu24.04 container: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 207cac1..8d242ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,9 +143,19 @@ jobs: export BUILD_WITHOUT_QUIC=1 make release + - name: Test + shell: bash + run: | + brew install emqx + emqx start + mkdir test-package + cp *.tar.gz test-package/ + cd test-package + tar xfz emqttb*.tar.gz + bin/emqttb --loiter 5s @pub -t test @g --host localhost + - if: failure() run: cat rebar3.crashdump - - run: ./_build/default/bin/emqttb - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 if: startsWith(github.ref, 'refs/tags/') with: