This action handles the setup and teardown of a RabbitMQ container for running tests.
- name: Setup infrastructure
uses: Particular/setup-rabbitmq-action@v1.6.0
with:
connection-string-name: EnvVarToCreateWithConnectionString
host-env-var-name: EnvVarToCreateWithHostName
tag: PackageName
imageTag: 3-management
registry-login-server: index.docker.io
registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
registry-password: ${{ secrets.DOCKERHUB_TOKEN }}}}
connection-string-name
and tag
are required. host-env-var-name
, and imageTag
are optional.
For logging into a container registry:
registry-login-server
defaults toindex.docker.io
and is not required if logging into Docker Hub.registry-username
andregistry-password
are optional and will result in pulling the RabbitMQ container anonymously if omitted.
Open the folder in Visual Studio Code. If you don't already have them, you will be prompted to install remote development extensions. After installing them, and re-opening the folder in a container, do the following:
Log into Azure
az login
az account set --subscription SUBSCRIPTION_ID
Run the npm installation
npm install
When changing index.js
, run npm run prepare
afterwards to update the output in the dist
folder.
The scripts and documentation in this project are released under the MIT License.