Fix MassTransitConsumer rebind issue, add tests for MassTransitConsumer #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test MassTransit | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-and-test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
env: | |
RABBITMQ_DOCKER_COMPOSE: Docker/rabbitmq.docker-compose.yml | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Swift Info | |
shell: bash | |
run: which swift && swift --version | |
- name: Resolve Packages | |
shell: bash | |
run: swift package resolve | |
- name: Build | |
shell: bash | |
run: swift build --build-tests | |
- name: Start RabbitMQ | |
shell: bash | |
run: docker compose -f ${{ env.RABBITMQ_DOCKER_COMPOSE }} up --wait | |
- name: Run Tests | |
shell: bash | |
run: .build/debug/swift-masstransitPackageTests.xctest --testing-library swift-testing | |
- name: Stop RabbitMQ | |
shell: bash | |
run: docker compose -f ${{ env.RABBITMQ_DOCKER_COMPOSE }} down |