File tree 9 files changed +36
-25
lines changed
9 files changed +36
-25
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ jobs:
16
16
17
17
steps :
18
18
- name : Setup go
19
- uses : actions/setup-go@v1
19
+ uses : actions/setup-go@v2
20
20
with :
21
- go-version : 1.13
21
+ go-version : 1.15
22
22
23
23
- name : Checkout code
24
- uses : actions/checkout@v1
24
+ uses : actions/checkout@v2
25
25
26
26
- name : Build binary
27
27
run : go build -o dist/retry -ldflags="-s -w -X main.version=$(git describe --tags)" .
@@ -35,12 +35,12 @@ jobs:
35
35
36
36
steps :
37
37
- name : Setup go
38
- uses : actions/setup-go@v1
38
+ uses : actions/setup-go@v2
39
39
with :
40
- go-version : 1.13
40
+ go-version : 1.15
41
41
42
42
- name : Checkout code
43
- uses : actions/checkout@v1
43
+ uses : actions/checkout@v2
44
44
45
45
- name : Run tests
46
46
run : make test
@@ -51,12 +51,12 @@ jobs:
51
51
52
52
steps :
53
53
- name : Setup go
54
- uses : actions/setup-go@v1
54
+ uses : actions/setup-go@v2
55
55
with :
56
- go-version : 1.13
56
+ go-version : 1.15
57
57
58
58
- name : Checkout code
59
- uses : actions/checkout@v1
59
+ uses : actions/checkout@v2
60
60
61
61
- name : Lint code
62
62
run : make lint
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
13
13
14
14
steps :
15
15
- name : Checkout code
16
- uses : actions/checkout@v1
16
+ uses : actions/checkout@v2
17
17
18
18
- name : Setup go
19
- uses : actions/setup-go@v1
19
+ uses : actions/setup-go@v2
20
20
with :
21
- go-version : 1.13
21
+ go-version : 1.15
22
22
23
23
- name : Run GoReleaser
24
24
env :
Original file line number Diff line number Diff line change 1
1
linters :
2
2
enable-all : true
3
3
disable :
4
+ - exhaustivestruct
5
+ - goerr113
4
6
- gomnd
7
+ - gosec
5
8
- lll
6
9
- maligned
10
+ - nlreturn
11
+ - testpackage
12
+ - tparallel
13
+ - wrapcheck
7
14
- wsl
8
15
9
16
issues :
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ builds:
13
13
- amd64
14
14
- 386
15
15
16
+ ignore :
17
+ - goos : darwin
18
+ goarch : 386
19
+
20
+ flags :
21
+ - -trimpath
22
+
16
23
ldflags :
17
24
- -s -w
18
25
- -X main.version={{.Version}}
@@ -22,7 +29,8 @@ builds:
22
29
23
30
hooks :
24
31
pre : go mod tidy
25
- post : make compress
32
+ post :
33
+ - upx --best --ultra-brute "{{ .Path }}"
26
34
27
35
archives :
28
36
- id : retry
Original file line number Diff line number Diff line change @@ -67,10 +67,6 @@ test: $(go-junit-report)
67
67
68
68
# ### Release ####
69
69
70
- .PHONY : compress
71
- compress : $(upx )
72
- $(upx ) --best --ultra-brute dist/retry_* /retry*
73
-
74
70
.PHONY : release
75
71
release : $(goreleaser )
76
72
ifdef GITHUB_ACTIONS
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ type Spec struct {
37
37
Consecutive int
38
38
39
39
// Invert is used to indicate that the task success status should be
40
- //reversed. Failed tasks count as successful, and vice versa.
40
+ // reversed. Failed tasks count as successful, and vice versa.
41
41
Invert bool
42
42
43
43
// Jitter is the duration range to randomly add to the Sleep time.
44
- // Sleep + [0, Jitter)
44
+ // Sleep + [0, Jitter)
45
45
Jitter time.Duration
46
46
47
47
// Sleep is the duration to pause between individual task invocations.
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ set -eu
3
3
4
4
platform=" $( uname -s) "
5
5
if [ " $platform " = Linux ]; then
6
- prefix=golangci-lint-1.23.8 -linux-amd64
6
+ prefix=golangci-lint-1.32.0 -linux-amd64
7
7
elif [ " $platform " = Darwin ]; then
8
- prefix=golangci-lint-1.23.8 -darwin-amd64
8
+ prefix=golangci-lint-1.32.0 -darwin-amd64
9
9
fi
10
10
11
11
cd " $( mktemp -d) " || exit 1
12
- wget -q " https://github.com/golangci/golangci-lint/releases/download/v1.23.8 /${prefix} .tar.gz"
12
+ wget -q " https://github.com/golangci/golangci-lint/releases/download/v1.32.0 /${prefix} .tar.gz"
13
13
tar -xf " ${prefix} .tar.gz"
14
14
mkdir -p " $( dirname " $1 " ) "
15
15
install " ${prefix} /golangci-lint" " $1 "
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ elif [ "$platform" = Darwin ]; then
9
9
fi
10
10
11
11
cd " $( mktemp -d) " || exit 1
12
- wget -q " https://github.com/goreleaser/goreleaser/releases/download/v0.123.3 /${prefix} .tar.gz"
12
+ wget -q " https://github.com/goreleaser/goreleaser/releases/download/v0.145.0 /${prefix} .tar.gz"
13
13
tar -xf " ${prefix} .tar.gz"
14
14
mkdir -p " $( dirname " $1 " ) "
15
15
install goreleaser " $1 "
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ platform="$(uname -s)"
5
5
if [ " $platform " = Darwin ]; then
6
6
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 exec brew install upx
7
7
fi
8
- prefix=upx-3.94 -amd64_linux
8
+ prefix=upx-3.96 -amd64_linux
9
9
10
10
cd " $( mktemp -d) " || exit 1
11
- wget -q " https://github.com/upx/upx/releases/download/v3.94 /${prefix} .tar.xz"
11
+ wget -q " https://github.com/upx/upx/releases/download/v3.96 /${prefix} .tar.xz"
12
12
tar -xf " ${prefix} .tar.xz"
13
13
mkdir -p " $( dirname " $1 " ) "
14
14
install " ${prefix} /upx" " $1 "
You can’t perform that action at this time.
0 commit comments