-
Notifications
You must be signed in to change notification settings - Fork 24
62 lines (44 loc) · 1.37 KB
/
tests.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
56
57
58
59
60
61
62
name: iOS Tests
# temporary for manual trigger
#on:
# workflow_dispatch:
on:
push:
# branches:
# - main
# pull_request:
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPR_USER: ${{ secrets.GITHUB_ACTOR }}
jobs:
ios-tests:
name: iOS Tests
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Checkout project sources
uses: actions/checkout@v3
- name: Install docker
run: brew install docker docker-compose
- name: Install colima
run: brew install colima
- name: Delete colima first
run: colima delete
- name: Start colima
run: colima start
- name: Start Docker containers
run: dev/up
- name: Check Docker contaner
run: docker port xmtp-android-node-1
# - name: Start local test server
# run: docker-compose -p xmtp -f dev/local/docker-compose.yml up -d
- name: Test with xcodebuild
run: xcodebuild test -scheme XMTP -destination "platform=iOS Simulator,name=iPhone 15"
# - name: Build
# run: swift build -v
# - name: Run tests
# run: swift test --vv
# - name: Stop local test server
# run: docker-compose -p xmtp -f dev/local/docker-compose.yml down