Skip to content

Fix colima and docker-compose on CI #274

Fix colima and docker-compose on CI

Fix colima and docker-compose on CI #274

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: macos-13
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Test
run: |
set -ex
brew install docker docker-compose colima
sudo curl -L -o /opt/homebrew/Cellar/lima/0.22.0/bin/limactl https://github.com/mikekazakov/lima-nohvf/raw/master/limactl && sudo chmod +x /opt/homebrew/Cellar/lima/0.22.0/bin/limactl
colima start --network-address --arch arm64 --vm-type=qemu
docker run -d -p 4445:445 \
-e TZ=Asia/Tokyo \
-v ./Tests/SMBClientTests/Fixtures/shares:/shares \
elswork/samba \
-u "1000:1000:alice:alice:alipass" \
-u "1001:1001:bob:bob:bobpass" \
-s "Alice Share:/shares/alice:rw:alice" \
-s "Bob Share:/shares/bob:rw:bob"
swift test