Skip to content

wip

wip #326

Workflow file for this run

name: Test
on:
push:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
tarantool: ['1.10', '2.5', '2.6', '2.7', '2.8', '2.10']
coveralls: [false]
include:
- tarantool: '2.11'
coveralls: true
# There are problems with current version of the
# setup-tarantool action on Ubuntu Jammy (ubuntu-latest or
# ubuntu-22.04). Use Ubuntu Focal (ubuntu-20.04) until they
# will be resolved. See [1] for details.
#
# [1]: https://github.com/tarantool/setup-tarantool/issues/36
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- uses: tarantool/setup-tarantool@v2
with:
tarantool-version: ${{ matrix.tarantool }}
- name: Prepare apt repo
run: curl -L https://tarantool.io/release/2/installer.sh | bash
- name: Install tt cli
run: sudo apt install -y tt
env:
DEBIAN_FRONTEND: noninteractive
# Setup luatest and luacheck
- name: Cache rocks
uses: actions/cache@v3
id: cache-rocks
with:
path: .rocks/
key: cache-rocks-${{ matrix.runs-on }}-07
- name: Install test dependencies
run: ./deps.sh
if: steps.cache-rocks.outputs.cache-hit != 'true'
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH
- run: tt rocks list
- run: tt rocks install cartridge
env:
CMAKE_DUMMY_WEBUI: true
- run: tt rocks remove ddl --force
- run: tt rocks make
- run: cmake -S . -B build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run luacheck
run: make -C build luacheck
- name: Run tests and code coverage analysis
run: make -C build coverage
- name: Send code coverage to coveralls.io
run: make -C build coveralls
if: ${{ matrix.coveralls }}
# Cleanup cached paths
- run: tt rocks remove cartridge
- run: tt rocks remove ddl
benchmark:
strategy:
fail-fast: false
matrix:
tarantool: ['2.11']
# There are problems with current version of the
# setup-tarantool action on Ubuntu Jammy (ubuntu-latest or
# ubuntu-22.04). Use Ubuntu Focal (ubuntu-20.04) until they
# will be resolved. See [1] for details.
#
# [1]: https://github.com/tarantool/setup-tarantool/issues/36
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- uses: tarantool/setup-tarantool@v2
with:
tarantool-version: ${{ matrix.tarantool }}
- name: Prepare apt repo
run: curl -L https://tarantool.io/release/2/installer.sh | bash
- name: Install tt cli
run: sudo apt install -y tt
env:
DEBIAN_FRONTEND: noninteractive
# Setup luatest
- name: Cache rocks
uses: actions/cache@v3
id: cache-rocks
with:
path: .rocks/
key: cache-rocks-${{ matrix.runs-on }}-bench-01
- run: tt rocks install luatest
if: steps.cache-rocks.outputs.cache-hit != 'true'
- run: tarantool ./test/bench_cache.lua