tarantool / setup-tarantool

Setup Tarantool for use with Github Actions
MIT License
9 stars 2 forks source link

feature: acquire exact tarantool version #22

Closed Totktonada closed 2 years ago

Totktonada commented 2 years ago

Sometimes we want to test a module against specific tarantool version, not a latest in the series. For example, 2.6 series may have 2.6.1, 2.6.2 and 2.6.3 releases and we want to setup 2.6.1.

Fixes #15


Usage examples:

steps:
  - uses: actions/checkout@v2
  - uses: tarantool/setup-tarantool@v1
    with:
      tarantool-version: '2.8.1'

(Before the patch we can only choose tarantool-version: '2.8' and the latest version in the 2.8 series (2.8.4) would be installed. Now we can choose one of previous versions in the series.)

steps:
  - uses: actions/checkout@v2
  - uses: tarantool/setup-tarantool@v1
    with:
      tarantool-version: '1.10.13.23'
      nightly-build: true

(We can also write tarantool-version: '1.10.13' to install the latest nightly build of 1.10.13 -- it is 1.10.13.23 at the moment of writing.)

Totktonada commented 2 years ago

Tested on tarantool/smtp: https://github.com/tarantool/smtp/commit/20b24049213a5eb96ba069c6be12042d92205fc0.