From 9afb30c86193bb4d11ecfb5bfeeab6150ce20176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=20Go=C3=B1i?= Date: Tue, 5 Nov 2024 16:41:36 +0100 Subject: [PATCH] CI: check nix installation --- .github/workflows/ci.yml | 2 ++ ci-helpers/check-installation-nix.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 ci-helpers/check-installation-nix.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fdcf32..5019e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,3 +62,5 @@ jobs: nix_path: nixpkgs=channel:nixos-unstable - run: nix build - run: nix flake check + - name: "Check installation" + run: ./ci-helpers/check-installation-nix.sh diff --git a/ci-helpers/check-installation-nix.sh b/ci-helpers/check-installation-nix.sh new file mode 100644 index 0000000..0950f2b --- /dev/null +++ b/ci-helpers/check-installation-nix.sh @@ -0,0 +1,12 @@ +set -o errexit +set -o nounset +set -o pipefail + +printf "Checking that the service is enabled: " +systemctl --user is-enabled razercontrol.service + +echo "Checking files on the path" +printf -- "- " && which razer-cli +printf -- "- " && which razer-settings + +echo "Done!"