Skip to content

add test workflow

add test workflow #1

Workflow file for this run

name: Run tests
on:
push:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [20.x, 22.x, 24.x]
rabbit-version: [3.12.5, 4.2.1]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Start services
run: docker compose up -d --wait
env:
RABBITMQ_VERSION: ${{ matrix.rabbit-version }}
- name: Run tests
run: |
npm install
npm test
- name: Stop services
if: always()
run: docker compose down -v