-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.runny.yaml
38 lines (38 loc) · 1.24 KB
/
.runny.yaml
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
shell: /bin/bash
commands:
clean:
run: |
go clean ./...
rm -rf dist
install-pre-commit:
internal: true
if: "! command -v pre-commit"
run: brew install pre-commit
install-pre-commit-hooks:
needs:
- install-pre-commit
run: pre-commit install
install-fish-completions:
# Homebrew installs these for you, but this is useful if you're installing with `go install .`
run: ln -s $PWD/completions/runny.fish ~/.config/fish/completions
release:
argnames:
- tag
run: git tag -am $tag $tag && git push origin refs/tags/$tag
release-next:
run: |
latest_version=$(git tag --list "v*" --sort "-refname" | head -1)
next_version=$(echo ${latest_version} | awk -F. -v OFS=. '{$NF += 1 ; print}')
printf "Release $next_version? (Current release is $latest_version) [yN] "
read answer
if [[ $answer =~ ^[Yy]$ ]]; then
git tag -am $next_version $next_version && git push origin refs/tags/$next_version
fi
generate:
run: go generate ./...
test:
run: go test ./...
test-coverage:
run: go test -coverprofile=c.out ./... && go tool cover -func="c.out"
test-coverage-html:
run: go test -coverprofile=c.out ./... && go tool cover -html="c.out"