-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
53 lines (41 loc) · 1.19 KB
/
justfile
File metadata and controls
53 lines (41 loc) · 1.19 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
# Incipit — here begins the new career.
example_input := "assets/example_resumes/software_engineer.yml"
outputs_dir := "outputs"
default:
@just --list
# Install dependencies and tools
init:
git config core.hooksPath .githooks
go mod download && go mod tidy
# Install CLI binary to $GOPATH/bin
install:
CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" ./cmd/incipit
# Build (if needed) and generate a resume
run input=example_input output=outputs_dir *args="": install
@mkdir -p {{output}}
incipit generate {{input}} -o {{output}} {{args}}
# Run golangci-lint
lint:
golangci-lint run ./...
# Run go vet
vet:
go vet ./...
# Run govulncheck
vuln:
govulncheck ./...
# Quality gate: lint + vet + test
check: lint vet
go test ./...
# Full CI gate
ci: lint vet
go build ./...
go test ./...
# Record showcase with teasr
record:
teasr showme
# Generate showcase assets (template previews + demo GIF) via teasr
showcase: install
@mkdir -p showcase/pdfs
incipit generate {{example_input}} -o showcase/build
@find showcase/build -name '*.pdf' -exec sh -c 'cp "$1" showcase/pdfs/"$(echo "$1" | sed "s/.*\.\(.*\)\.pdf/\1.pdf/")"' _ {} \;
teasr showme