ci: update GitHub Actions workflows #9
Workflow file for this run
This file contains hidden or 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: reusable_testing | ||
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-22.04 | ||
steps: | ||
- name: Clone the go-tarantool connector | ||
uses: actions/checkout@v5 | ||
with: | ||
repository: ${{ github.repository_owner }}/go-tarantool | ||
- name: Download the tarantool build artifact | ||
uses: actions/download-artifact@v5 | ||
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: Get the tarantool version | ||
run: | | ||
TNT_VERSION=$(tarantool --version | grep -e '^Tarantool') | ||
echo "TNT_VERSION=$TNT_VERSION" >> $GITHUB_ENV | ||
п | ||
- name: Setup golang for connector and tests | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.20' | ||
- name: Setup tt | ||
run: | | ||
curl -L https://tarantool.io/release/3/installer.sh | sudo bash | ||
sudo apt install -y tt | ||
tt version | ||
- name: Install test dependencies | ||
run: make deps | ||
- name: Run tests | ||
run: make test |