File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 3333 - name : FETCH TAGS
3434 run : git fetch --tags
3535
36+ - name : EXTRACT ACTIVEMQ VERSION
37+ if : inputs.plugin == 'amqp10_client'
38+ run : |
39+ awk '/^ACTIVEMQ_VERSION/ {print $1 "=" $3}' deps/amqp10_client/Makefile >> $GITHUB_ENV
40+
3641 - name : SETUP OTP & ELIXIR
3742 uses : erlef/setup-beam@v1
3843 with :
@@ -99,12 +104,27 @@ jobs:
99104 docker run -d --network host --name erlang_low_version erlang:${LOW_ERLANG_VERSION} \
100105 erl -sname rabbit_fifo_prop@localhost -setcookie $(cat ~/.erlang.cookie) -noinput
101106
107+ - name : RESTORE ACTIVEMQ FROM CACHE
108+ if : inputs.plugin == 'amqp10_client'
109+ uses : actions/cache/restore@v4
110+ id : cache-activemq-restore
111+ with :
112+ path : deps/amqp10_client/test/system_SUITE_data/apache-activemq-${{ env.ACTIVEMQ_VERSION }}-bin.tar.gz
113+ key : activemq-${{ env.ACTIVEMQ_VERSION }}
114+
102115 - name : RUN TESTS
103116 if : inputs.plugin != 'rabbitmq_cli'
104117 run : |
105118 sudo netstat -ntp
106119 make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }}
107120
121+ - name : CACHE ACTIVEMQ
122+ uses : actions/cache/save@v4
123+ if : inputs.plugin == 'amqp10_client' && steps.cache-activemq-restore.outputs.cache-hit != 'true'
124+ with :
125+ path : deps/amqp10_client/test/system_SUITE_data/apache-activemq-${{ env.ACTIVEMQ_VERSION }}-bin.tar.gz
126+ key : activemq-${{ env.ACTIVEMQ_VERSION }}
127+
108128 # rabbitmq_cli needs a correct broker version for two of its tests.
109129 # But setting PROJECT_VERSION makes other plugins fail.
110130 - name : RUN TESTS (rabbitmq_cli)
You can’t perform that action at this time.
0 commit comments