From 236f948fcfdc2ff917efe5befc0de1446b9b24dc Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Tue, 9 Dec 2025 16:31:22 +0300 Subject: [PATCH] ci: added flake test --- .github/workflows/Test flake.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/Test flake.yml diff --git a/.github/workflows/Test flake.yml b/.github/workflows/Test flake.yml new file mode 100644 index 0000000..fd3679d --- /dev/null +++ b/.github/workflows/Test flake.yml @@ -0,0 +1,32 @@ +name: Test flake.nix + +on: + push: + branches: [main] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Nix + uses: cachix/install-nix-action@v22 + with: + extra_nix_config: | + experimental-features = nix-command flakes + + - name: Build clrsync package + run: | + nix --extra-experimental-features "flakes nix-command" build .#packages.x86_64-linux.clrsync + + - name: Enter devShell + run: | + nix --extra-experimental-features "flakes nix-command" develop .#default --command true + + - name: Test clrsync CLI + run: | + nix --extra-experimental-features "flakes nix-command" run .#clrsync-cli -- --help