diff --git a/.github/workflows/nix-test.yml b/.github/workflows/nix-test.yml new file mode 100644 index 0000000..48b00f0 --- /dev/null +++ b/.github/workflows/nix-test.yml @@ -0,0 +1,22 @@ +name: "NixOS derivation tests" +on: + pull_request: + push: +jobs: + nix-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - run: nix-build -E 'with import {}; pkgs.callPackage ./default.nix {}' + flake-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix build + - run: nix flake check