Fix running arbitrary commands
All checks were successful
Test / Build (push) Successful in 4s
Test / Test (push) Successful in 3s

This commit is contained in:
Chris Daßler
2025-02-13 00:12:25 +01:00
parent aabcb44a3d
commit f4bf3dd277
2 changed files with 3 additions and 11 deletions

View File

@@ -8,23 +8,15 @@ jobs:
steps:
- 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
uses: jetify-com/devbox-install-action@v0.12.0
with:
project-path: './src'
enable-cache: false
skip-nix-installation: true
enable-cache: true
devbox-version: 0.13.7
- name: Run arbitrary commands
run: devbox run -- echo "done!"
run: devbox run -- echo "done"
- name: Run a script called test
run: devbox run test

View File

@@ -7,7 +7,7 @@
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
"echo \"Ok: Simply return code 0\" && exit 0"
]
}
}