Skip to content

Commit

Permalink
add basic checks
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Jul 24, 2023
1 parent 6f6912d commit f546e03
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on:
push:
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Install Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Check
run: nix flake check -L

- name: Show
run: nix flake show
14 changes: 6 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@

formatter = forAllSystems (pkgs: pkgs.alejandra);

wrapperConfigurations = forAllSystems (pkgs: {
test = self.lib {
checks = forAllSystems (pkgs:
(self.lib {
inherit pkgs;
modules = [./tests/test-module.nix];
};
});
})
.config
.build
.packages);

packages = forAllSystems (pkgs:
{
test = self.lib.build {
inherit pkgs;
modules = [./tests/test-module.nix];
};
}
// doc.${pkgs.system}.packages);

Expand Down

0 comments on commit f546e03

Please sign in to comment.