33 lines
884 B
YAML
33 lines
884 B
YAML
name: Testing with devbox
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa
|
|
with:
|
|
logger: pretty
|
|
# 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: true
|
|
devbox-version: 0.13.4
|
|
skip-nix-installation: true
|
|
|
|
- name: Run arbitrary commands
|
|
run: devbox run -- echo "done"
|
|
|
|
- name: Run a script called test
|
|
run: devbox run test |