-
Notifications
You must be signed in to change notification settings - Fork 8
/
devbox.json
48 lines (48 loc) · 1.84 KB
/
devbox.json
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
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.11.0/.schema/devbox.schema.json",
"packages": [
"minio-client@2024-07-31T15-58-33Z",
".#atlas"
],
"shell": {
"scripts": {
"api": "go run cmd/api/serve.go",
"test": "go test -p 1 -v -timeout 1h ./...",
"test:coverage": "go test -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -p 1 -timeout 1h ./...",
"test:coverage:junit": "go test -v -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -p 1 -timeout 1h ./... 2>&1 | go-junit-report -iocopy -set-exit-code -out junit.xml",
"migrate:diff": [
"echo -n 'Migration Name: '",
"read migration_name",
"atlas migrate diff \"$migration_name\" --dir \"file://migrations/sql?format=golang-migrate\" --to \"ent://db/schema\" --dev-url \"docker://postgres/16/test?search_path=public\""
],
"migrate:new": [
"echo -n 'Migration Name: '",
"read migration_name",
"atlas migrate new \"$migration_name\" --dir \"file://migrations/sql?format=golang-migrate\""
],
"migrate:hash": [
"atlas migrate hash --dir \"file://migrations/sql?format=golang-migrate\""
],
"generate": "go generate -tags tools -x ./...",
"setup": [
"docker compose up -d && sleep 5",
"mc alias set local http://localhost:9000 minio minio123",
"mc admin user svcacct add local minio --access-key REPLACE_ME_KEY --secret-key REPLACE_ME_SECRET",
"mc anonymous set public local/smr"
],
"teardown": [
"docker compose down"
],
"lint": "golangci-lint run"
}
}
}