-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
25 lines (21 loc) · 772 Bytes
/
justfile
File metadata and controls
25 lines (21 loc) · 772 Bytes
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
# default help menu lists tasks
@help:
just --list --justfile {{justfile()}} --list-heading $'raiju\n'
# generate test boilerplate code including marked interface stubs and test tables for exported functions
@generate:
go install github.com/cweill/gotests/gotests@latest
go install github.com/matryer/moq@v0.3.4
go generate ./...
# install the executable
@install:
go install cmd/raiju/raiju.go
# publish the current commit with a tag
@publish tag message:
git tag -a {{tag}} -m "{{message}}"
git push origin {{tag}}
podman build -t ghcr.io/nyonson/raiju:latest -t ghcr.io/nyonson/raiju:{{tag}} -f Containerfile .
podman push ghcr.io/nyonson/raiju:latest
podman push ghcr.io/nyonson/raiju:{{tag}}
# test all the codes
@test:
go test -cover ./...