Skip to content

Commit

Permalink
try nix for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
adueck committed Nov 29, 2023
1 parent 417011b commit 08500aa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Test Nix"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05"
- uses: workflow/nix-shell-action@v3
with:
packages: nodejs_20,pandoc
script: |
node --version
pandoc --version
2 changes: 2 additions & 0 deletions dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nix-shell --command return
node --version
10 changes: 10 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-23.05";
pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShell {
packages = with pkgs; [
nodejs_20
];
}

0 comments on commit 08500aa

Please sign in to comment.