-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.04 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Test"
on:
pull_request:
push:
branches:
- main
jobs:
tests:
strategy:
fail-fast: false # Prevents the matrix from failing fast
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: setup docker (macos)
if: runner.os == 'macOS'
run: |
brew install docker docker-compose colima
sudo colima start
echo $SHELL
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
- 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 to install and start Docker on macOS
- name: Install Docker on macOS
if: runner.os == 'macOS'
run: curl -s --unix-socket ~/.docker/run/docker.sock http/_ping
- name: Build the devenv shell and run any pre-commit hooks
run: devenv test