Skip to content

Commit

Permalink
test: Add just target to test the new lock API
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Nov 25, 2023
1 parent 7a22517 commit 129800d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:

- name: Test
working-directory: test
run: nix develop -c just test
run: |
nix develop -c just test
nix develop -c just local-lock-2
- run: nix flake show
15 changes: 15 additions & 0 deletions test/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ local-lock:
local-update:
nix run .\#update --impure --override-input twist "path:$(readlink -f ..)"

local-lock-2:
nix run .\#emacs.generateLockDir --impure \
--override-input twist "path:$(readlink -f ..)" \
-- ./lock2
[[ -d lock2 ]]
[[ -f lock2/flake.lock ]]
nix run .\#emacs.generateLockDir --impure \
--override-input twist "path:$(readlink -f ..)" \
-- --force ./lock2
nix run .\#emacs.generateLockDir --impure \
--override-input twist "path:$(readlink -f ..)" \
-- --force --no-update-flake-lock ./lock2
rm -r ./lock2
git rm -r --cached ./lock2

# Used for CI.
local-update-flake:
nix flake update --override-input twist "path:$(readlink -f ..)"
Expand Down

0 comments on commit 129800d

Please sign in to comment.