-
-
Notifications
You must be signed in to change notification settings - Fork 16
33 lines (28 loc) · 1.04 KB
/
test.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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
jobs:
test:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Test
run: |
set -ex
brew update
brew install docker docker-compose qemu colima
# specifically install an outdated version of lima - 0.23.2 as with 1.0.1 there are network connectivity issues
brew uninstall --ignore-dependencies lima
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/45464b6c4788a80be3f131ab5e2a4468cdfa960c/Formula/l/lima.rb > lima.rb
brew install lima.rb
LIMACTL_PATH=$(brew --prefix)/bin/limactl
sudo curl -L -o $LIMACTL_PATH https://github.com/mikekazakov/lima-nohvf/raw/master/limactl && sudo chmod +x $LIMACTL_PATH
colima start --network-address --arch arm64 --vm-type=qemu
docker-compose up --detach
swift test