From 2eb8fde9747ce9510754d958754ee969b02f5284 Mon Sep 17 00:00:00 2001 From: Farbod Ahmadian Date: Thu, 12 Sep 2024 12:57:00 +0200 Subject: [PATCH] test --- .github/workflows/test.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e7fb8b..0c76888 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,17 +16,24 @@ jobs: steps: - uses: actions/checkout@v4 + + - name: setup docker (macos) with Colima + if: runner.os == 'macOS' + run: | + brew install docker docker-compose colima + colima start --vm-type=vz + echo $SHELL + sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock + docker --version + curl -s --unix-socket $HOME/.colima/default/docker.sock http/_ping + - uses: cachix/install-nix-action@v26 - uses: cachix/cachix-action@v14 with: name: devenv + - name: Install devenv.sh run: nix profile install nixpkgs#devenv - # Add a conditional step for macOS to create the Docker socket symlink - - name: Create Docker socket symlink on macOS - if: runner.os == 'macOS' - run: sudo ln -s ~/.docker/run/docker.sock /var/run/docker.sock - - name: Build the devenv shell and run any pre-commit hooks run: devenv test