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 66
77jobs :
88 luacheck :
9- runs-on : ubuntu-latest
9+ runs-on : ubuntu-24.04
1010 if : |
1111 github.event_name == 'push' ||
1212 github.event_name == 'pull_request' &&
3232 run : ./.rocks/bin/luacheck .
3333
3434 golangci-lint :
35- runs-on : ubuntu-latest
35+ runs-on : ubuntu-24.04
3636 if : |
3737 github.event_name == 'push' ||
3838 github.event_name == 'pull_request' &&
5757 args : --out-${NO_FUTURE}format colored-line-number --config=.golangci.yaml
5858
5959 codespell :
60- runs-on : ubuntu-latest
60+ runs-on : ubuntu-24.04
6161 if : |
6262 github.event_name == 'push' ||
6363 github.event_name == 'pull_request' &&
6969 run : pip3 install codespell
7070
7171 - 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:
100100
101101 - name : Check workability of benchmark tests
102102 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 88 workflow_dispatch :
99
1010jobs :
11- run-tests-on-ubuntu-22-04 :
11+ run-tests-tarantool-1-10 :
1212 if : (github.event_name == 'push') ||
1313 (github.event_name == 'pull_request' &&
1414 github.event.pull_request.head.repo.full_name != github.repository) ||
2828 coveralls : ${{ matrix.coveralls }}
2929 fuzzing : ${{ matrix.fuzzing }}
3030
31- run-tests-on-ubuntu-latest :
31+ run-tests :
3232 if : (github.event_name == 'push') ||
3333 (github.event_name == 'pull_request' &&
3434 github.event.pull_request.head.repo.full_name != github.repository) ||
5050 coveralls : false
5151 uses : ./.github/workflows/reusable-run.yml
5252 with :
53- os : ubuntu-latest
53+ os : ubuntu-24.04
5454 go-version : ${{ matrix.golang }}
5555 tarantool-version : ${{ matrix.tarantool }}
5656 coveralls : ${{ matrix.coveralls }}
@@ -224,4 +224,4 @@ jobs:
224224 if : matrix.golang == 'stable'
225225 run : |
226226 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