+2
-14
.tangled/workflows/test.yml
+2
-14
.tangled/workflows/test.yml
···
10
10
depth: 1
11
11
submodules: false
12
12
13
-
dependencies:
14
-
github:NixOS/nixpkgs/nixpkgs-unstable:
15
-
- gleam
16
-
- beamMinimal28Packages.erlang
17
-
- beamMinimal28Packages.rebar3
18
-
19
13
steps:
20
-
- name: Setup
21
-
command: |
22
-
export PATH="$HOME/.nix-profile/bin:$PATH"
23
-
- name: Test alicia/identity
24
-
command: |
25
-
cd alicia/identity
26
-
gleam test
27
-
cd -
14
+
- name: Test all
15
+
command: nix run .#test
+12
flake.nix
+12
flake.nix
···
68
68
'';
69
69
})}/bin/run-lexgen";
70
70
};
71
+
test = {
72
+
type = "app";
73
+
program = "${(pkgs.writeShellApplication {
74
+
inherit runtimeInputs;
75
+
name = "run-tests";
76
+
text = ''
77
+
${cdInto "alicia/identity"}
78
+
${pkgs.gleam}/bin/gleam test
79
+
${cdInto ""}
80
+
'';
81
+
})}/bin/run-tests";
82
+
};
71
83
});
72
84
};
73
85
}