This action downloads the devbox CLI and installs the Nix packages defined in your devbox.json
.
name: Testing with devbox
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.4.0
- name: Run arbitrary commands
run: devbox shell -- echo "done!"
- name: Run a script called test
run: devbox run test
Input argument | description | default |
---|---|---|
project-path | Path to the folder that contains a valid devbox.json |
repo's root directory |
enable-cache | Cache the entire Nix store in github based on your devbox.json |
false |
refresh-cli | Specify whether the CLI should be redownloaded | false |
devbox-version | Specify devbox CLI version you want to pin to. Only supports >0.2.2 | latest |
sha256-checksum | Specify an explicit checksum for the devbox binary |
Here's an example job with all inputs:
- name: Install devbox
uses: jetpack-io/devbox-install-action@v0.3.0
with:
project-path: 'path-to-folder'
enable-cache: 'true'
refresh-cli: 'false'
devbox-version: 0.5.5
sha256-sum: b6f7e24839de004ef2cad312f05865f77a73b1e0b1757e0f4d39a5911adabd50