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 74d5e05
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,27 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: setup docker (macos)
if: runner.os == 'macOS'
run: |
brew install docker docker-compose colima
brew services start colima
echo $SHELL
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
colima start
- 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
# Add a conditional step to install and start Docker on macOS
- name: Install Docker on macOS
if: runner.os == 'macOS'
run: sudo ln -s ~/.docker/run/docker.sock /var/run/docker.sock
run: docker --version

- name: Build the devenv shell and run any pre-commit hooks
run: devenv test

0 comments on commit 74d5e05

Please sign in to comment.