File tree Expand file tree Collapse file tree 3 files changed +73
-82
lines changed Expand file tree Collapse file tree 3 files changed +73
-82
lines changed Original file line number Diff line number Diff line change 1
1
name : Go
2
2
3
3
on :
4
- push :
5
- branches : [ main ]
6
4
pull_request :
7
- branches : [ main ]
5
+ paths :
6
+ - " **.go"
8
7
9
8
jobs :
10
-
11
9
build :
12
- runs-on : ubuntu-latest
10
+ name : Test
11
+ runs-on : ubuntu-22.04
13
12
steps :
14
- - uses : actions/checkout@v2
15
-
16
- - name : Set up Go
17
- uses : actions/setup-go@v2
18
- with :
19
- go-version : 1.17
20
-
21
- - name : Build
22
- run : go build -v ./...
23
-
24
- - name : Test
25
- run : go test -v ./...
13
+ - name : Set up Go
14
+ uses : actions/setup-go@v3
15
+ with :
16
+ go-version : " ^1.19"
17
+ - name : Check out code into the Go module directory
18
+ uses : actions/checkout@v3
19
+ - name : Get dependencies
20
+ run : |
21
+ go get -v -t -d ./...
22
+ - name : Build
23
+ run : go build -v ./cmd/dbbench/...
24
+ - name : Test
25
+ run : go test -race ./...
26
+ - name : Run golangci-lint
27
+ uses : golangci/golangci-lint-action@v3.2.0
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags :
5
+ - " *"
6
+
7
+ jobs :
8
+ goreleaser :
9
+ runs-on : ubuntu-22.04
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v3
13
+ with :
14
+ fetch-depth : 0
15
+ - name : Set up Go
16
+ uses : actions/setup-go@v3
17
+ with :
18
+ go-version : " ^1.19"
19
+ - name : Run GoReleaser
20
+ uses : goreleaser/goreleaser-action@v2
21
+ with :
22
+ version : latest
23
+ args : release --rm-dist
24
+ env :
25
+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 1
- # This is an example goreleaser.yaml file with some sane defaults.
2
- # Make sure to check the documentation at http://goreleaser.com
1
+ ---
3
2
project_name : multicode
4
3
5
4
before :
6
5
hooks :
7
6
- go mod download
8
7
builds :
9
- -
10
- main : ./cmd/decode/main.go
11
- binary : decode
12
- env :
13
- - CGO_ENABLED=0
14
- - GO111MODULE=on
15
- goos :
16
- - linux
17
- - darwin
18
- - freebsd
19
- - openbsd
20
- - netbsd
21
- - solaris
22
- # -plan9
23
- - dragonfly
24
- - windows
25
- goarch :
26
- - 386
27
- - amd64
28
- - arm
29
- - arm64
30
- # - ppc64
31
- # - ppc64le
32
- # - mips
33
- # - mipsle
34
- # - mips64
35
- # - mips64le
36
- goarm :
37
- - 6
38
- - 7
39
-
40
- archive :
41
- wrap_in_directory : true
42
- format_overrides :
43
- - goos : windows
44
- format : zip
45
- files :
46
- - LICENSE
47
- - README.md
48
-
49
-
8
+ - main : ./cmd/decode/main.go
9
+ binary : decode
10
+ env :
11
+ - CGO_ENABLED=0
12
+ goos :
13
+ - linux
14
+ - darwin
15
+ - windows
16
+ archives :
17
+ - format : binary
50
18
checksum :
51
- name_template : ' checksums.txt'
52
-
19
+ name_template : " checksums.txt"
53
20
snapshot :
54
21
name_template : " {{ .Tag }}-next-{{.Commit}}"
55
-
56
- nfpm :
57
- maintainer : Simon Jürgensmeyyer <simon.juergensmeyer@gmail.com>
58
- homepage : https://github.com/sj14/multicode/
59
- description : Decode hex, base64 and protobuf recursively with a single command
60
- license : MIT
61
- formats :
62
- - deb
63
- - rpm
64
-
65
- brew :
66
- # name: dbbench
67
- # folder: homebrew-tap
68
- github :
69
- owner : sj14
70
- name : homebrew-tap
71
- description : Decode hex, base64 and protobuf recursively with a single command
72
-
22
+ # nfpms:
23
+ # - maintainer: Simon Jürgensmeyyer <simon.juergensmeyer@gmail.com>
24
+ # homepage: https://github.com/sj14/multicode/
25
+ # description: Decode bits, hex, base64 and protobuf recursively with a single command
26
+ # license: MIT
27
+ # formats:
28
+ # - deb
29
+ # - rpm
30
+ # - apk # not tested
31
+ brews :
32
+ - name : multicode
33
+ skip_upload : auto
34
+ tap :
35
+ owner : sj14
36
+ name : homebrew-tap
37
+ description : " Decode bits, hex, base64 and protobuf recursively with a single command"
73
38
release :
74
39
github :
75
40
owner : sj14
76
41
name : multicode
77
42
disable : false
78
43
draft : false
79
- prerelease : false
80
-
44
+ prerelease : auto
81
45
changelog :
82
46
filters :
83
47
exclude :
You can’t perform that action at this time.
0 commit comments