-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 1.71 KB
/
Copy pathci.yml
File metadata and controls
74 lines (63 loc) · 1.71 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
server:
name: Server Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: server/package-lock.json
- name: Install server dependencies
run: npm ci
- name: Typecheck server
run: npm run typecheck
- name: Run server tests
run: npm test
ios:
name: iOS Package Tests
runs-on: macos-latest
defaults:
run:
working-directory: ios
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Run Swift tests
run: |
DEVICE_ID="$(xcrun simctl list devices available | awk -F '[()]' '/iPhone/ { print $2; exit }')"
test -n "${DEVICE_ID}"
xcodebuild test \
-scheme HollerKit \
-destination "id=${DEVICE_ID}" \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO
ios-demo:
name: iOS Demo Build
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build demo app
run: |
xcodebuild \
-project examples/ios-demo/HollerKitDemo.xcodeproj \
-scheme HollerKitDemo \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath /tmp/HollerKitDemoDerived \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
build