Skip to content

Commit 015bbc0

Browse files
committed
ci: setup a Justfile
1 parent 3466358 commit 015bbc0

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/ci.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: hashicorp/setup-golang@v1
1717
with:
1818
version-file: go.mod
19+
- uses: extractions/setup-just@v2
1920
- name: Run Go Test
2021
run: |
21-
go test -race -v ./...
22+
just test

Justfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
set shell := ["bash", "-u", "-c"]
2+
3+
# print just command targets
4+
default:
5+
@just --list
6+
7+
# run go test with race detector
8+
test:
9+
go test -count=1 -v -race ./...
10+
11+
# scan source with go vet tool
12+
vet:
13+
go vet ./...
14+
15+
# tidy go modules
16+
tidy:
17+
go mod tidy
18+
19+
# publish latest git tag as a github release
20+
release:
21+
envy exec gh-release goreleaser release --clean
22+
$(MAKE) clean

0 commit comments

Comments
 (0)