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 disable-nix-access-token: true 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