Skip to content

Commit

Permalink
tarantool
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-jukovec committed Apr 8, 2024
1 parent 5830f09 commit 3354c7f
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,48 @@ jobs:
cartridge: true
coveralls: true
metrics: true
- tarantool: 'master'
cartridge: false
coveralls: false
metrics: false

runs-on: ubuntu-20.04
steps:
- name: Setup tt
run: |
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
sudo apt install -y tt
- name: Install tarantool ${{ matrix.tarantool }}
uses: tarantool/setup-tarantool@v2
uses: tarantool/setup-tarantool@v3
with:
tarantool-version: ${{ matrix.tarantool }}
if: matrix.tarantool != 'master'

- name: Get Tarantool master latest commit
if: matrix.tarantool == 'master'
run: |
commit_hash=$(git ls-remote https://github.com/tarantool/tarantool.git --branch master | head -c 8)
echo "LATEST_COMMIT=${commit_hash}" >> $GITHUB_ENV
shell: bash

- name: Cache Tarantool master
if: matrix.tarantool == 'master'
id: cache-latest
uses: actions/cache@v3
with:
path: "${GITHUB_WORKSPACE}/bin"
key: cache-latest-${{ env.LATEST_COMMIT }}

- name: Setup Tarantool CE (master)
if: matrix.tarantool == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
run: |
tt init
tt install tarantool master
- name: Add tt Tarantool to PATH
if: matrix.tarantool == 'master'
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH

- name: Clone the module
uses: actions/checkout@v3
Expand Down

0 comments on commit 3354c7f

Please sign in to comment.