]> git.sesse.net Git - bcachefs-tools-debian/blob - .github/workflows/nixos.yml
a7684d354d31755b459d9d082ee52979bdda3cf5
[bcachefs-tools-debian] / .github / workflows / nixos.yml
1 name: "NixOS-Tests"
2 on:
3   pull_request:
4   push:
5 jobs:
6   nixos-flake-check:
7     runs-on: ubuntu-latest
8     steps:
9     - uses: actions/checkout@v2.3.4
10     - uses: cachix/install-nix-action@v14
11       with:
12         install_url: https://nixos-nix-install-tests.cachix.org/serve/vij683ly7sl95nnhb67bdjjfabclr85m/install
13         install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
14         extra_nix_config: |
15           experimental-features = nix-command flakes
16           access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
17     - uses: cachix/cachix-action@v10
18       with:
19         name: bcachefs-tools
20         # If you chose API tokens for write access OR if you have a private cache
21         authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
22     - run: nix flake show
23     - run: nix flake check --print-build-logs