Enable Cachix #8
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 Nix | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
nix: | |
- 23.05 | |
- unstable | |
name: Test Nix (${{ matrix.os }}, ${{ matrix.nix }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: datadog | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
extraPullNames: nix-community | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-${{ matrix.nix }} | |
- name: Print nixpkgs version | |
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' | |
- uses: actions/checkout@v3 | |
- run: | | |
nix-shell --run 'which ruby' | |
nix-shell --run 'ruby --version' |