From 3aaa1531a90f5f275407c41e2367b55249065a7d Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 21 Nov 2023 09:48:22 +0100 Subject: [PATCH] ci/check: Run checks for all systems (not only x86_64-darwin) --- .github/workflows/check.yml | 4 ++-- CONTRIBUTING.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a1afd498..8f12c5c9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,6 +19,6 @@ jobs: with: name: nix-community authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: nix flake check - - run: nix flake check ./templates/_wrapper/simple + - run: nix flake check --all-systems --max-jobs 1 + - run: nix flake check --all-systems ./templates/_wrapper/simple - run: nix build .#docs --show-trace diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 635c9700..c953c784 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ This document is mainly for contributors to nixvim, but it can also be useful fo In order to submit a change you must be careful of several points: - The code must be properly formatted. This can be done through `nix fmt`. -- The tests must pass. This can be done through `nix flake check` (this also checks formatting). +- The tests must pass. This can be done through `nix flake check --all-systems` (this also checks formatting). - The change should try to avoid breaking existing configurations. - If the change introduces a new feature it should add tests for it (see the architecture section for details). @@ -104,7 +104,7 @@ You can specify the special `tests` attribute in the configuration that will not - `tests.dontRun`: avoid launching this test, simply build the configuration. -The tests are then runnable with `nix flake check`. +The tests are then runnable with `nix flake check --all-systems`. There are a second set of tests, unit tests for nixvim itself, defined in `tests/lib-tests.nix` that use the `pkgs.lib.runTests` framework.