diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 97ed5bd..5087f03 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,13 +28,43 @@ jobs: cartridge: true coveralls: true metrics: true + - tarantool: 'master' + cartridge: false + coveralls: false + metrics: false runs-on: ubuntu-20.04 steps: - 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