Skip to content
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Test"

on:
pull_request:
push:

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: {{ '${{ matrix.os }}' }}
Comment thread
dastarruer marked this conversation as resolved.
Outdated

steps:
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v16
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
with:
name: devenv
- name: Install devenv.sh
run: nix profile add nixpkgs#devenv

- name: Build the devenv shell and run any pre-commit hooks
run: devenv test
4 changes: 4 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,8 @@ in {
cwd = "${config.git.root}/app";
};
};

enterTest = ''
node --version | grep "${pkgs.nodejs_latest.version}"
'';
Comment thread
dastarruer marked this conversation as resolved.
}