summaryrefslogtreecommitdiff
path: root/.github/workflows/nixos.yml
blob: aea0139f2f0731a4bfe5884755024ab0f2060855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: "NixOS-Tests"
on:
  pull_request:
  push:
jobs:
  nixos-flake-check:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2.3.4
    - uses: cachix/install-nix-action@v22
      with:
        extra_nix_config: |
          experimental-features = nix-command flakes
          access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
    - uses: cachix/cachix-action@v12
      with:
        name: bcachefs-tools
        # If you chose API tokens for write access OR if you have a private cache
        authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
    - run: nix flake show
    - run: nix flake check --print-build-logs