-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev.flow
55 lines (53 loc) · 1.28 KB
/
dev.flow
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
visibility: private
tags:
- development
executables:
- verb: run
name: checks
aliases: [pre-commit, pc, validate]
description: Run the repo's pre-commit script
exec:
params:
- envKey: COLORFGBG
text: 15;0
- envKey: COLORTERM
text: truecolor
- envKey: TERM
text: xterm-256color
dir: //
cmd: |
go fmt ./...
go generate ./...
go mod tidy
golangci-lint run ./...
go test ./...
- verb: test
name: snapshot
description: Run the snapshot tests
exec:
dir: //
params:
- envKey: COLORFGBG
text: 15;0
- envKey: COLORTERM
text: truecolor
- envKey: TERM
text: xterm-256color
args:
- envKey: BUILDER
pos: 1
default: podman
cmd: |
$BUILDER run --rm -it -v "$PWD":/go/src/app -w /go/src/app golang:1.23-bookworm go test ./container_test.go
- verb: run
name: sample
description: Run the sample container program
visibility: hidden # TODO: fix running of tea programs from within the container
exec:
dir: //
args:
- envKey: VIEW
pos: 1
default: frame
logMode: text
cmd: go run ./sample --view $VIEW