Skip to content

Commit 3dc1156

Browse files
authored
Merge pull request #886 from mackerelio/update-workflows
use mackerelio/[email protected]
2 parents df4dde4 + c321b94 commit 3dc1156

File tree

9 files changed

+23
-22
lines changed

9 files changed

+23
-22
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ env:
1212
DEBIAN_FRONTEND: noninteractive
1313
jobs:
1414
lint:
15-
uses: mackerelio/workflows/.github/workflows/go-lint.yml@v1.1.0
15+
uses: mackerelio/workflows/.github/workflows/go-lint.yml@v1.2.0
1616
test:
17-
uses: mackerelio/workflows/.github/workflows/go-test.yml@v1.1.0
17+
uses: mackerelio/workflows/.github/workflows/go-test.yml@v1.2.0
1818
test-linux:
19-
uses: mackerelio/workflows/.github/workflows/setup-go-matrix.yml@v1.1.0
19+
uses: mackerelio/workflows/.github/workflows/setup-go-matrix.yml@v1.2.0
2020
with:
2121
run: |
2222
./test.bash
2323
make testconvention
2424
os-versions: '["ubuntu-22.04"]'
2525
test-windows:
26-
uses: mackerelio/workflows/.github/workflows/setup-go-matrix.yml@v1.1.0
26+
uses: mackerelio/workflows/.github/workflows/setup-go-matrix.yml@v1.2.0
2727
with:
2828
run: |
2929
go build -o check-log/check-log.exe ./check-log

check-dns/lib/check_dns_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
func TestNameServer(t *testing.T) {
1414
nameserver, err := adapterAddress()
1515
if err != nil {
16-
t.Errorf(err.Error())
16+
t.Error(err)
1717
}
18-
t.Logf(nameserver)
18+
t.Log(nameserver)
1919
address := net.ParseIP(nameserver)
2020
if address == nil {
21-
t.Errorf("nameserver is invalid IP")
21+
t.Error("nameserver is invalid IP")
2222
}
2323
}
2424

check-log/lib/check-log.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (opts *logOpts) searchLog(ctx context.Context, logFile string) (int64, int6
290290
if opts.Encoding != "" {
291291
e := encoding.GetEncoding(opts.Encoding)
292292
if e == nil {
293-
return 0, 0, "", fmt.Errorf("unknown encoding:" + opts.Encoding)
293+
return 0, 0, "", fmt.Errorf("unknown encoding: %s", opts.Encoding)
294294
}
295295
opts.decoder = e.NewDecoder()
296296
}
@@ -447,7 +447,7 @@ func parseFilePattern(directory, filePattern string, caseInsensitive bool) ([]st
447447

448448
fileInfos, err := os.ReadDir(dirStr)
449449
if err != nil {
450-
return nil, fmt.Errorf("cannot read the directory:" + err.Error())
450+
return nil, fmt.Errorf("cannot read the directory: %s", err.Error())
451451
}
452452

453453
var fileList []string

check-mysql/test_57/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.1'
22

33
services:
44
primary:
5-
image: mysql:5.7.8
5+
image: mysql:5.7.44
66
platform: linux/amd64
77
environment:
88
MYSQL_ROOT_PASSWORD: mysql
@@ -17,7 +17,7 @@ services:
1717
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
1818

1919
replica:
20-
image: mysql:5.7.8
20+
image: mysql:5.7.44
2121
platform: linux/amd64
2222
environment:
2323
MYSQL_ROOT_PASSWORD: mysql

check-mysql/test_57/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set -ex
44

55
echo $0
66
prog=$(basename $0)
7-
if ! command -v docker-compose > /dev/null
7+
if ! command -v docker > /dev/null
88
then
9-
echo "$prog: docker-compose is not installed" >&2
9+
echo "$prog: docker is not installed" >&2
1010
exit 2
1111
fi
1212

@@ -28,8 +28,8 @@ if $plugin connection --host=127.0.0.1 --port=$primary_port --user=$user --passw
2828
exit 1
2929
fi
3030

31-
docker-compose up -d
32-
trap 'docker-compose down --rmi local -v' EXIT
31+
docker compose up -d
32+
trap 'docker compose down --rmi local -v' EXIT
3333

3434
USER=$user PASSWORD=$password PORT=$primary_port ../wait.sh
3535

check-mysql/test_8/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.1'
22

33
services:
44
primary:
5-
image: mysql:8.0.23
5+
image: mysql:8.0.40
66
platform: linux/amd64
77
environment:
88
MYSQL_ROOT_PASSWORD: mysql
@@ -17,7 +17,7 @@ services:
1717
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
1818

1919
replica:
20-
image: mysql:8.0.23
20+
image: mysql:8.0.40
2121
platform: linux/amd64
2222
environment:
2323
MYSQL_ROOT_PASSWORD: mysql

check-mysql/test_8/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set -ex
44

55
echo $0
66
prog=$(basename $0)
7-
if ! command -v docker-compose > /dev/null
7+
if ! command -v docker > /dev/null
88
then
9-
echo "$prog: docker-compose is not installed" >&2
9+
echo "$prog: docker is not installed" >&2
1010
exit 2
1111
fi
1212

@@ -28,8 +28,8 @@ if $plugin connection --host=127.0.0.1 --port=$primary_port --user=$user --passw
2828
exit 1
2929
fi
3030

31-
docker-compose up -d
32-
trap 'docker-compose down --rmi local -v' EXIT
31+
docker compose up -d
32+
trap 'docker compose down --rmi local -v' EXIT
3333

3434
USER=$user PASSWORD=$password PORT=$primary_port ../wait.sh
3535

check-smtp/lib/check-smtp_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (m *mockSMTPServer) runServe() error {
3939
tc := textproto.NewConn(conn)
4040

4141
for _, res := range m.responses {
42-
if err := tc.PrintfLine(res); err != nil {
42+
if err := tc.PrintfLine(res); err != nil { // nolint
4343
errCh <- err
4444
return
4545
}

check-windows-eventlog/lib/check_windows_eventlog_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func TestWriteLastOffset(t *testing.T) {
4848
}
4949

5050
func raiseEvent(t *testing.T, typ int, msg string) {
51+
t.Helper()
5152
ole.CoInitialize(0)
5253
defer ole.CoUninitialize()
5354

0 commit comments

Comments
 (0)