Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
farbodahm committed Sep 12, 2024
1 parent 727cebe commit 2eb8fde
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2eb8fde

Please sign in to comment.