File tree Expand file tree Collapse file tree 4 files changed +187
-41
lines changed
Expand file tree Collapse file tree 4 files changed +187
-41
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v5
18+ with :
19+ go-version : " 1.26"
20+
21+ - name : Build
22+ run : go build -v ./...
23+
24+ - name : Test
25+ run : go test -v ./...
26+
27+ - name : Format check
28+ run : |
29+ gofmt -l .
30+ [ -z "$(gofmt -l .)" ]
31+
32+ lint :
33+ runs-on : ubuntu-latest
34+ steps :
35+ - name : Checkout
36+ uses : actions/checkout@v4
37+
38+ - name : Set up Go
39+ uses : actions/setup-go@v5
40+ with :
41+ go-version : " 1.26"
42+
43+ - name : golangci-lint
44+ uses : golangci/golangci-lint-action@v6
45+ with :
46+ version : latest
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+ packages : write
11+
12+ jobs :
13+ goreleaser :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Set up Go
22+ uses : actions/setup-go@v5
23+ with :
24+ go-version : " 1.26"
25+
26+ - name : Run tests
27+ run : go test ./...
28+
29+ - name : Run GoReleaser
30+ uses : goreleaser/goreleaser-action@v6
31+ with :
32+ distribution : goreleaser-pro
33+ version : latest
34+ args : release --clean
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ GORELEASER_KEY : ${{ secrets.GORELEASER_KEY }}
38+ TAP_GITHUB_TOKEN : ${{ secrets.TAP_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ builds:
2626 - -X main.version={{.Version}}
2727 - -X main.commit={{.Commit}}
2828 - -X main.date={{.Date}}
29- mod_timestamp : " {{ .CommitTimestamp }}"
29+ mod_timestamp : ' {{ .CommitTimestamp }}'
3030
3131archives :
3232 - id : bndry-archive
@@ -43,7 +43,7 @@ archives:
4343 - CHANGELOG*
4444
4545checksum :
46- name_template : " checksums.txt"
46+ name_template : ' checksums.txt'
4747 algorithm : sha256
4848
4949changelog :
@@ -52,10 +52,10 @@ changelog:
5252 abbrev : 7
5353 filters :
5454 exclude :
55- - " ^docs:"
56- - " ^test:"
57- - " ^chore:"
58- - " ^ci:"
55+ - ' ^docs:'
56+ - ' ^test:'
57+ - ' ^chore:'
58+ - ' ^ci:'
5959 groups :
6060 - title : Features
6161 regexp : ' ^.*?feat(\([[:word:]]+\))??!?:.+$'
@@ -72,10 +72,11 @@ brews:
7272 owner : ofkm
7373 name : homebrew-tap
7474 branch : main
75+ token : ' {{ .Env.TAP_GITHUB_TOKEN }}'
7576 directory : Formula
76- homepage : " https://github.com/ofkm/bndry"
77- description : " Friendly CLI wrapper for HashiCorp Boundary focused on SSH workflows"
78- license : " MIT"
77+ homepage : ' https://github.com/ofkm/bndry'
78+ description : ' Friendly CLI wrapper for HashiCorp Boundary focused on SSH workflows'
79+ license : ' MIT'
7980 test : |
8081 system "#{bin}/bndry --help"
8182 install : |
@@ -95,4 +96,4 @@ release:
9596
9697# Metadata
9798metadata :
98- mod_timestamp : " {{ .CommitTimestamp }}"
99+ mod_timestamp : ' {{ .CommitTimestamp }}'
You can’t perform that action at this time.
0 commit comments