-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow to build and test MassTransit
- Loading branch information
1 parent
ff00d75
commit 828900d
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 |