-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.cue
More file actions
105 lines (96 loc) · 1.67 KB
/
env.cue
File metadata and controls
105 lines (96 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package cuenv
import (
"github.com/cuenv/cuenv/schema"
c "github.com/cuenv/cuenv/contrib/contributors"
)
schema.#Base
runtime: schema.#DevenvRuntime
hooks: onEnter: devenv: schema.#Devenv
ci: providers: ["github"]
ci: contributors: [
c.#Nix,
c.#CuenvRelease,
]
formatters: rust: {edition: "2021"}
let _t = tasks
let _s = services
services: {
spicedb: {
description: "Local SpiceDB for integration testing (in-memory, insecure)"
command: "spicedb"
args: ["serve", "--grpc-preshared-key", "test-key", "--datastore-engine", "memory"]
readiness: port: {
port: 50051
}
restart: mode: "onFailure"
}
}
tasks: {
build: {
command: "cargo"
args: ["build"]
inputs: [
"Cargo.toml",
"Cargo.lock",
"src/**",
"build.rs",
"proto/**",
]
}
test: {
command: "cargo"
args: ["nextest", "run"]
dependsOn: [_t.build]
inputs: [
"Cargo.toml",
"Cargo.lock",
"src/**",
"tests/**",
"build.rs",
"proto/**",
]
}
"test-all": {
command: "cargo"
args: ["nextest", "run", "--all-features"]
dependsOn: [_t.build]
inputs: [
"Cargo.toml",
"Cargo.lock",
"src/**",
"tests/**",
"build.rs",
"proto/**",
]
}
"test-integration": {
command: "cargo"
args: ["nextest", "run", "--all-features"]
dependsOn: [_t.build, _s.spicedb]
inputs: [
"Cargo.toml",
"Cargo.lock",
"src/**",
"tests/**",
"build.rs",
"proto/**",
]
}
lint: {
command: "cargo"
args: ["clippy", "--all-features", "--", "-D", "warnings"]
dependsOn: [_t.build]
inputs: [
"Cargo.toml",
"Cargo.lock",
"src/**",
"build.rs",
"proto/**",
]
}
fmt: {
command: "cargo"
args: ["fmt", "--check"]
inputs: ["src/**"]
}
}