Skip to content

ci: update GitHub Actions workflows #9

ci: update GitHub Actions workflows

ci: update GitHub Actions workflows #9

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
п

Check failure on line 35 in .github/workflows/reusable_testing.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable_testing.yml

Invalid workflow file

You have an error in your yaml syntax on line 35
- 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