Add initial CI for main and branches #1
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 RabbitMq | |
on: | |
push: | |
branches: [ "main", "#**" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-and-test: | |
name: Build Swift | |
runs-on: ubuntu-latest | |
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: Run Tests | |
shell: bash | |
run: swift test |