File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : runTestsAndLinters
2
2
on : [push, pull_request]
3
3
4
+ permissions :
5
+ contents : read
6
+ # Write is needed for golangci-lint annotations
7
+ checks : write
8
+
4
9
jobs :
5
10
test :
6
11
strategy :
7
12
matrix :
8
- go : [ "1.23", "1.22" ]
13
+ go : [ "1.24", "1. 23", "1.22" ]
9
14
os : [ ubuntu-24.04, ubuntu-22.04 ]
10
15
name : Tests Go ${{ matrix.go }} on ${{ matrix.os }} # This name is used in main branch protection rules
11
16
runs-on : ${{ matrix.os }}
@@ -17,11 +22,11 @@ jobs:
17
22
echo -n "mysqldump -V: " ; mysqldump -V
18
23
19
24
echo -e '[mysqld]\nserver-id=1\nlog-bin=mysql\nbinlog-format=row\ngtid-mode=ON\nenforce_gtid_consistency=ON\n' | sudo tee /etc/mysql/conf.d/replication.cnf
20
-
25
+
21
26
# bind to :: for dual-stack listening
22
27
sudo sed -i 's/bind-address.*= 127.0.0.1/bind-address = ::/' /etc/mysql/mysql.conf.d/mysqld.cnf
23
28
sudo sed -i 's/mysqlx-bind-address.*= 127.0.0.1/mysqlx-bind-address = ::/' /etc/mysql/mysql.conf.d/mysqld.cnf
24
-
29
+
25
30
sudo service mysql start
26
31
27
32
# apply this for mysql5 & mysql8 compatibility
78
83
- name : Install Go
79
84
uses : actions/setup-go@v5
80
85
with :
81
- go-version : " 1.23 "
86
+ go-version : stable
82
87
- name : Run tests
83
88
run : |
84
89
# separate test to avoid RESET MASTER conflict
91
96
runs-on : ubuntu-latest
92
97
steps :
93
98
- uses : actions/checkout@v4
99
+ - uses : actions/setup-go@v5
100
+ with :
101
+ go-version : stable
94
102
- name : golangci-lint
95
103
uses : golangci/golangci-lint-action@v6
96
104
with :
@@ -113,7 +121,7 @@ jobs:
113
121
- name : Install Go
114
122
uses : actions/setup-go@v5
115
123
with :
116
- go-version : " 1.23 "
117
-
124
+ go-version : stable
125
+
118
126
- name : Build on ${{ matrix.os }}/${{ matrix.arch }}
119
127
run : GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build ./...
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ linters:
21
21
linters-settings :
22
22
nolintlint :
23
23
allow-unused : false
24
- allow-leading-space : false
25
24
require-specific : true
26
25
27
26
govet :
You can’t perform that action at this time.
0 commit comments