Skip to content

Commit

Permalink
Update installer action to match the latest cli behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
LucilleH committed Jun 22, 2023
1 parent 9707b9f commit d6ecd41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install devbox
uses: ./
with:
devbox-version: 0.4.4
devbox-version: 0.5.5
project-path: 'testdata'

test-action-with-cache:
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ runs:
~/.nix-profile
/nix/store
/nix/var/nix
~/.local/state/nix
key: ${{ runner.os }}-devbox-${{ hashFiles(format('{0}/devbox.json', inputs.project-path)) }}

- name: Get devbox version
Expand Down Expand Up @@ -109,4 +110,6 @@ runs:
run: |
NIX_INSTALLER_NO_CHANNEL_ADD=1
NIX_BUILD_SHELL=/bin/bash
devbox setup nix
devbox install --config=${{ inputs.project-path }}
devbox run --config=${{ inputs.project-path }} -- echo "Packages installed!"
7 changes: 2 additions & 5 deletions testdata/devbox.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"packages": [
"go"
"go@latest"
],
"shell": {
"init_hook": null
},
"nixpkgs": {
"commit": "52e3e80afff4b16ccb7c52e9f0f5220552f03d04"
}
}
}

0 comments on commit d6ecd41

Please sign in to comment.