Merge pull request #320 from orlandos-nl/Joannis-patch-1 #218
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: Swift | |
on: | |
push: | |
branches: | |
- master/7.0 | |
pull_request: | |
branches: | |
- master/7.0 | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
swift-version: ["5.7", "5.8"] | |
mongodb-version: ["4.2", "4.4", "5.0", "6.0", "7.0"] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Install Swift | |
uses: swift-actions/setup-swift@v1 | |
with: | |
swift-version: ${{ matrix.swift-version }} | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
mongodb-replica-set: mk-rs | |
- name: Run tests | |
run: swift test | |
# macos: | |
# runs-on: macos-12 | |
# steps: | |
# - name: Install docker | |
# uses: docker-practice/actions-setup-docker@master | |
# | |
# - name: Check out | |
# uses: actions/checkout@v3 | |
# | |
# - name: Start Mongo | |
# run: docker-compose up -d | |
# | |
# - name: Run tests | |
# run: swift test |