-
-
Notifications
You must be signed in to change notification settings - Fork 103
49 lines (44 loc) · 1.03 KB
/
swift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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.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