ci: add almalinux platform to packaging #476
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
pull_request: | |
jobs: | |
testing: | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
tarantool-version: ['1.10', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '2.8', '2.x-latest'] | |
fail-fast: false | |
runs-on: [ubuntu-20.04] | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@v2 | |
with: | |
repository: ${{ github.repository_owner }}/memcached | |
# Enable recursive submodules checkout as test-run git module is used | |
# for running tests. | |
submodules: recursive | |
- name: Setup Tarantool (version is not equal to latest 2.x) | |
if: matrix.tarantool-version != '2.x-latest' | |
uses: tarantool/setup-tarantool@v1 | |
with: | |
tarantool-version: ${{ matrix.tarantool-version }} | |
- name: Setup Tarantool 2.x (latest) | |
if: matrix.tarantool-version == '2.x-latest' | |
run: | | |
curl -L https://tarantool.io/pre-release/2/installer.sh | sudo bash | |
sudo apt install -y tarantool tarantool-dev | |
- name: Install build requirements | |
run: sudo apt-get -y install libsasl2-dev libevent-dev | |
- run: cmake . | |
- name: Setup Python 3 for tests | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install test requirements | |
run: pip install -r test-run/requirements.txt | |
- run: make test-memcached | |
- run: make test-memcached-capable | |
- name: Run benchmarks | |
run: make test-memcached-bench |