Skip to content

Commit

Permalink
Add CI workflow to build and test MassTransit
Browse files Browse the repository at this point in the history
  • Loading branch information
xtremekforever committed Feb 11, 2025
1 parent ff00d75 commit 828900d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build & Test MassTransit

on:
push:
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

0 comments on commit 828900d

Please sign in to comment.