Skip to content
Snippets Groups Projects
Commit deaa9599 authored by Yaroslav Lobankov's avatar Yaroslav Lobankov Committed by Yaroslav Lobankov
Browse files

ci: add integration testing for etcd-client

Add workflow job for integration testing of the etcd-client module.

Closes #9093

NO_DOC=ci
NO_TEST=ci
NO_CHANGELOG=ci
parent f90f5390
No related branches found
No related tags found
No related merge requests found
name: etcd_integration
on:
workflow_call:
inputs:
artifact_name:
description: The name of the tarantool build artifact
default: ubuntu-focal
required: false
type: string
jobs:
run_tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
# To track supported versions, visit https://endoflife.date/etcd site.
etcd-version: [ 'v3.4.30', 'v3.5.12' ]
steps:
- name: Check out the etcd-client module
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/etcd-client
token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}
- name: Download the tarantool build artifact
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact_name }}
- name: Install tarantool
# Now we're lucky: all dependencies are already installed. Check package
# dependencies when migrating to other OS version.
run: sudo dpkg -i tarantool*.deb
- name: Setup etcd ${{ matrix.etcd-version }}
uses: tarantool/actions/setup-etcd@master
with:
version: ${{ matrix.etcd-version }}
- name: Setup tt
run: |
curl -L https://tarantool.io/release/3/installer.sh | bash
sudo apt-get -y install tt
- name: Setup luatest
run: tt rocks install luatest 1.0.1
- name: Run tests
run: make test
......@@ -151,3 +151,14 @@ jobs:
uses: tarantool/ddl/.github/workflows/reusable_test.yml@master
with:
artifact_name: tarantool-ubuntu-focal-${{ needs.tarantool.outputs.sha }}
etcd-client:
# Run on push to the 'master' and release branches or on non-fork pull
# requests (secrets are unavailable in fork pull requests).
if: github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
needs: tarantool
uses: tarantool/tarantool/.github/workflows/etcd_integration.yml@master
with:
artifact_name: tarantool-ubuntu-focal-${{ needs.tarantool.outputs.sha }}
secrets: inherit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment