File tree Expand file tree Collapse file tree 5 files changed +532
-9
lines changed Expand file tree Collapse file tree 5 files changed +532
-9
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
luacheck :
9
- runs-on : ubuntu-latest
9
+ runs-on : ubuntu-24.04
10
10
if : |
11
11
github.event_name == 'push' ||
12
12
github.event_name == 'pull_request' &&
32
32
run : ./.rocks/bin/luacheck .
33
33
34
34
golangci-lint :
35
- runs-on : ubuntu-latest
35
+ runs-on : ubuntu-24.04
36
36
if : |
37
37
github.event_name == 'push' ||
38
38
github.event_name == 'pull_request' &&
57
57
args : --out-${NO_FUTURE}format colored-line-number --config=.golangci.yaml
58
58
59
59
codespell :
60
- runs-on : ubuntu-latest
60
+ runs-on : ubuntu-24.04
61
61
if : |
62
62
github.event_name == 'push' ||
63
63
github.event_name == 'pull_request' &&
69
69
run : pip3 install codespell
70
70
71
71
- name : Run codespell
72
- run : make codespell
72
+ run : make codespell
Original file line number Diff line number Diff line change @@ -100,4 +100,4 @@ jobs:
100
100
101
101
- name : Check workability of benchmark tests
102
102
if : inputs.go-version == 'stable'
103
- run : make bench-deps bench DURATION=1x COUNT=1
103
+ run : make bench-deps bench DURATION=1x COUNT=1
Original file line number Diff line number Diff line change
1
+ name : reusable_testing
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ artifact_name :
7
+ description : The name of the tarantool build artifact
8
+ default : ubuntu-focal
9
+ required : false
10
+ type : string
11
+
12
+ jobs :
13
+ run_tests :
14
+ runs-on : ubuntu-22.04
15
+ steps :
16
+ - name : Clone the go-tarantool connector
17
+ uses : actions/checkout@v4
18
+ with :
19
+ repository : ${{ github.repository_owner }}/go-tarantool
20
+
21
+ - name : Download the tarantool build artifact
22
+ uses : actions/download-artifact@v4
23
+ with :
24
+ name : ${{ inputs.artifact_name }}
25
+
26
+ - name : Install tarantool
27
+ # Now we're lucky: all dependencies are already installed. Check package
28
+ # dependencies when migrating to other OS version.
29
+ run : sudo dpkg -i tarantool*.deb
30
+
31
+ - name : Get the tarantool version
32
+ run : |
33
+ TNT_VERSION=$(tarantool --version | grep -e '^Tarantool')
34
+ echo "TNT_VERSION=$TNT_VERSION" >> $GITHUB_ENV
35
+
36
+ - name : Setup golang for connector and tests
37
+ uses : actions/setup-go@v5
38
+ with :
39
+ go-version : ' 1.20'
40
+
41
+ - name : Setup tt
42
+ run : |
43
+ curl -L https://tarantool.io/release/2/installer.sh | sudo bash
44
+ sudo apt install -y tt
45
+ tt version
46
+
47
+ - name : Install test dependencies
48
+ run : make deps
49
+
50
+ - name : Run tests
51
+ run : make test
Original file line number Diff line number Diff line change 8
8
workflow_dispatch :
9
9
10
10
jobs :
11
- run-tests-on-ubuntu-22-04 :
11
+ run-tests-tarantool-1-10 :
12
12
if : (github.event_name == 'push') ||
13
13
(github.event_name == 'pull_request' &&
14
14
github.event.pull_request.head.repo.full_name != github.repository) ||
28
28
coveralls : ${{ matrix.coveralls }}
29
29
fuzzing : ${{ matrix.fuzzing }}
30
30
31
- run-tests-on-ubuntu-latest :
31
+ run-tests :
32
32
if : (github.event_name == 'push') ||
33
33
(github.event_name == 'pull_request' &&
34
34
github.event.pull_request.head.repo.full_name != github.repository) ||
50
50
coveralls : false
51
51
uses : ./.github/workflows/reusable-run.yml
52
52
with :
53
- os : ubuntu-latest
53
+ os : ubuntu-24.04
54
54
go-version : ${{ matrix.golang }}
55
55
tarantool-version : ${{ matrix.tarantool }}
56
56
coveralls : ${{ matrix.coveralls }}
@@ -224,4 +224,4 @@ jobs:
224
224
if : matrix.golang == 'stable'
225
225
run : |
226
226
cd "${SRCDIR}"
227
- make bench-deps bench DURATION=1x COUNT=1
227
+ make bench-deps bench DURATION=1x COUNT=1
You can’t perform that action at this time.
0 commit comments