Skip to content

Merge pull request #170 from kishikawakatsumi/examples #393

Merge pull request #170 from kishikawakatsumi/examples

Merge pull request #170 from kishikawakatsumi/examples #393

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
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