Fix running arbitrary commands
This commit is contained in:
@@ -8,23 +8,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa
|
|
||||||
with:
|
|
||||||
# pin installer version as v0.33 and v0.34 break our devbox setup
|
|
||||||
source-tag: v0.32.3
|
|
||||||
extra-conf: |
|
|
||||||
experimental-features = ca-derivations fetch-closure flakes nix-command
|
|
||||||
|
|
||||||
- name: Install devbox
|
- name: Install devbox
|
||||||
uses: jetify-com/devbox-install-action@v0.12.0
|
uses: jetify-com/devbox-install-action@v0.12.0
|
||||||
with:
|
with:
|
||||||
project-path: './src'
|
project-path: './src'
|
||||||
enable-cache: false
|
enable-cache: true
|
||||||
skip-nix-installation: true
|
|
||||||
devbox-version: 0.13.7
|
devbox-version: 0.13.7
|
||||||
|
|
||||||
- name: Run arbitrary commands
|
- name: Run arbitrary commands
|
||||||
run: devbox run -- echo "done!"
|
run: devbox run -- echo "done"
|
||||||
|
|
||||||
- name: Run a script called test
|
- name: Run a script called test
|
||||||
run: devbox run test
|
run: devbox run test
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": [
|
"test": [
|
||||||
"echo \"Error: no test specified\" && exit 1"
|
"echo \"Ok: Simply return code 0\" && exit 0"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user