gunk-dev/the-valley

policy.cue

sourced7aca57f4c15main's published tip history
1.3 KiB
1// The project layer of the same sample policy, living in the project's own
2// tree rather than in the instance repository. The directory convention is
3// the same one; the authority is not. A project can only add to its own
4// directory, and adding to the instance's floor directory is a change
5// landing in the instance repository.
6package verification
7
8project: {
9 // Selecting the project type is embedding its definition. Every
10 // project in the group can read this template; only the ones that
11 // write this line are affected by it.
12 #docs
13
14 // A check the floor and the template know nothing about. A project may
15 // always add classes and checks.
16 checks: "shellcheck": {
17 runner: "nix"
18 attribute: "shellcheck"
19 }
20
21 // A check that installs the scripts in a virtual machine boots a VM and
22 // takes minutes, so it is marked slow. It is required exactly as a
23 // quick check is.
24 checks: "install-vm": {
25 runner: "nix"
26 attribute: "install-vm"
27 cost: "slow"
28 }
29 classes: scripts: {
30 paths: "bin/**": true
31 requires: "shellcheck": true
32 requires: "install-vm": true
33 }
34
35 // The template offered the knowledge lint as a default, so this project
36 // can decline it and vet still passes. Declining either of the floor's
37 // checks the same way does not.
38 classes: knowledge: requires: "knowledge-lint": false
39}