Skip to content

sqs support attrs

sqs support attrs #288

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
strategy:
matrix:
rocketmq_version:
# - 4.2.0
- 4.9.4
- 5.1.4
- 5.2.0
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: setup JDK
uses: actions/setup-java@v2.1.0
with:
java-version: '8'
distribution: 'adopt'
- name: download rocketmq
run: |
cd ~
wget https://archive.apache.org/dist/rocketmq/${{matrix.rocketmq_version}}/rocketmq-all-${{matrix.rocketmq_version}}-bin-release.zip
unzip rocketmq-all-*-bin-release.zip
- name: run rocketmq
run: |
cd ~
[ -d ~/rocketmq*/ ] && cd ~/rocketmq*/
echo "traceTopicEnable=true" >> conf/broker.conf
sed -i 's/sh ${ROCKETMQ_HOME}/bash ${ROCKETMQ_HOME}/' bin/mqnamesrv
sed -i 's/sh ${ROCKETMQ_HOME}/bash ${ROCKETMQ_HOME}/' bin/mqbroker
nohup bash bin/mqnamesrv &
nohup bash bin/mqbroker -n localhost:9876 -c conf/broker.conf &
- name: download openresty
run: |
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates
wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/openresty.list
sudo apt-get update
sudo apt-get -y install openresty
- name: openresty version
run: |
sudo rm /usr/sbin/nginx
sudo ln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginx
nginx -v
- name: install test-nginx
uses: perl-actions/install-with-cpanm@v1
with:
install: Test::Nginx
- name: test
run: |
cd $GITHUB_WORKSPACE
sudo prove -v t/*.t