generated from yonasBSD/rust-ci-github-actions-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
80 lines (67 loc) · 1.59 KB
/
justfile
File metadata and controls
80 lines (67 loc) · 1.59 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
build:
comtrya -d setup -v apply
pipelight trigger --flag pre-commit --attach
pipelight logs -vv
just test
just clean
test:
pipelight run tests --attach
pipelight logs -vv
lint:
task lint
format:
task format
audit:
task audit
coverage:
task audit:code-coverage
clean:
task clean
@doctor:
echo "\n\n=== Just Doctor ===\n\n"
just -l
echo "\n\n=== Taskfile Doctor ===\n\n"
task -l
echo "\n\n=== Pipelight Doctor ===\n\n"
pipelight ls
echo "\n\n=== Lefthook Doctor ===\n\n"
lefthook validate
echo "\n\n=== Prek Doctor ===\n\n"
prek list
echo "\n\n=== Comtrya Doctor ===\n\n"
comtrya -d manifests status
echo "\n\n=== Goji Doctor ===\n\n"
goji check
COUNT=$(cat .goji.json | jq '.types | length') ; echo "\n\nFound $COUNT goji types."
prepare-commit-msg file:
#!/bin/sh
if [ ! -f ".goji.json" ]; then
goji init --repo
fi
RAWMSG=$(cat {{file}} | grep -v '^[ ]*#')
echo "prepare raw :: $RAWMSG"
goji --no-commit --message "$RAWMSG" > {{file}}
lint-commit-msg file:
#!/bin/sh
RAWMSG=$(cat {{file}} | grep -v '^[ ]*#')
echo "lint raw :: $RAWMSG"
MSG=$(goji check --from-file {{file}})
CHECK=$(echo $MSG | grep '^Error' | wc -l)
if [ "$CHECK" -gt 0 ]; then
return 1
fi
setup:
lefthook install
prek install
prek auto-upgrade
mise trust --quiet .mise.toml
@[ -f ".mise.local.toml" ] && mise trust --quiet .mise.local.toml || return 0
mise install
install:
task build
rm -f ~/.local/bin/github-bot
mv target/release/github-bot ~/.local/bin/
ask *question:
copilot -p '{{question}}' --allow-all-tools
help:
task help