Use ambient Nix when available, with a two stage fallback #1035
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- staging | |
- trying | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# FIXME macos garbage currently collect also nix-shell that runs the test | |
#os: [ ubuntu-latest, macos-latest ] | |
variants: [stable, latest, bash4] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@V27 | |
with: | |
nix_path: nixpkgs=channel:nixpkgs-unstable | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- run: "nix run --accept-flake-config .#test-runner-${{ matrix.variants }}" |