Files
workflow-actions-test/.gitea/workflows/trigger_devbox.yaml
Chris Daßler 33c4548e6b
Some checks failed
Test / Build (push) Successful in 4s
Test / Test (push) Successful in 3s
Testing with devbox / test (push) Failing after 25s
Fix download Nixpkgs tarball
2025-02-13 21:37:03 +01:00

38 lines
1.1 KiB
YAML

name: Testing with devbox
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Nixpkgs Tarball
run: |
wget -O nixpkgs.tar.gz https://github.com/NixOS/nixpkgs/archive/75a52265bda7fd25e06e3a67dee3f0354e73243c.tar.gz
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16
with:
logger: pretty
extra-conf: |
experimental-features = ca-derivations fetch-closure flakes nix-command
substituters = https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.12.0
with:
project-path: './src'
enable-cache: true
devbox-version: 0.13.7
skip-nix-installation: true
nixpkgs-url: file://$(pwd)/nixpkgs.tar.gz
- name: Run arbitrary commands
run: devbox run -- echo "done"
- name: Run a script called test
run: devbox run test