forked from BamPeers/rust-ci-github-actions-workflow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
48 lines (39 loc) · 835 Bytes
/
justfile
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
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
clean:
task clean
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
# TODO: Add remaining packages listed in README.md
install:
lefthook install
help:
task help