Skip to content

Commit

Permalink
Run test via Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jun 23, 2024
1 parent 947de21 commit 2173b46
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config:
accept-flake-config = true
# https://input-output-hk.github.io/haskell.nix/tutorials/getting-started.html
# with:
# extra_nix_config: |
Expand All @@ -49,8 +52,10 @@ jobs:
# run: |
# ./bin/${{ matrix.devShell }} -c ghc --version
# ./bin/${{ matrix.devShell }} -c cabal --version
- run: nix build --accept-flake-config
- run: nix build
timeout-minutes: 10
- run: nix run .#test
timeout-minutes: 5
# timeout-minutes: 5
# - name: Update package index
# run: ./bin/${{ matrix.devShell }} -c cabal update
Expand Down
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
flake = pkgs.hapistrano.flake { };
in
flake // {
packages.default = flake.packages."hapistrano:exe:hap";
apps.test = {
type = "app";
program = "${flake.packages."hapistrano:test:test"}/bin/test";
};
packages.default = flake.packages." hapistrano:exe:hap ";
});
}


0 comments on commit 2173b46

Please sign in to comment.