Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ jobs:
with:
tarantool-version: '2.8'

- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version

- name: Setup luacheck
run: tarantoolctl rocks install luacheck 0.25.0
run: tt rocks install luacheck 0.25.0

- name: Run luacheck
run: ./.rocks/bin/luacheck .
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
with:
go-version: 1.13

- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
tt version

- name: Install test dependencies
run: make deps

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,15 @@ jobs:
run: echo "MallocNanoZone=0" >> $GITHUB_ENV
if: matrix.runs-on == 'macos-12'

# Workaround issue https://github.com/tarantool/tt/issues/640
- name: Fix tt rocks
if: matrix.tarantool == 'brew'
run: |
brew ls --verbose tarantool | grep macosx.lua | xargs rm -f

- name: Install test dependencies
run: |
brew install luarocks
brew install tt
cd "${SRCDIR}"
make deps

Expand Down
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ BENCH_OPTIONS := -bench=. -run=^Benchmark -benchmem -benchtime=${DURATION} -coun
GO_TARANTOOL_URL := https://github.com/tarantool/go-tarantool
GO_TARANTOOL_DIR := ${PROJECT_DIR}/${BENCH_PATH}/go-tarantool
TAGS :=
TTCTL := tt
ifeq (,$(shell which tt 2>/dev/null))
TTCTL := tarantoolctl
endif

.PHONY: clean
clean:
Expand All @@ -26,8 +22,9 @@ clean:

.PHONY: deps
deps: clean
( cd ./queue/testdata; $(TTCTL) rocks install queue 1.3.0 )
( cd ./crud/testdata; $(TTCTL) rocks install crud 1.4.1 )
@(command -v tt > /dev/null || (echo "error: tt not found" && exit 1))
( cd ./queue/testdata; tt rocks install queue 1.3.0 )
( cd ./crud/testdata; tt rocks install crud 1.4.1 )

.PHONY: datetime-timezones
datetime-timezones:
Expand Down