-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.54 KB
/
ci.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
50
51
52
53
54
55
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-22.04
name: Amazon Linux 2023
strategy:
matrix:
image:
- tayloraswift/5.10.0-amazonlinux2023:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up mock deployments
run: |
docker compose -f .github/mongonet/docker-compose.yml up -d
- name: Initialize replica set
run: |
timeout 60s bash -c \
'until docker exec -t mongonet-mongo-0-1 /bin/mongosh --file /create-replica-set.js; do sleep 1; done'
- name: Run pipeline
run: |
docker run -t --rm --network=mongonet \
--name mongonet-environment \
--user root \
-v $PWD:/swift-mongodb \
-w /swift-mongodb \
${{ matrix.image }} \
/bin/bash $(echo .github/pipeline)
macos:
runs-on: macos-14
name: macOS
env:
DEVELOPER_DIR: "/Applications/Xcode_15.3.app/Contents/Developer"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build only
run: |
swift --version
swift build