Skip to content

Commit bd7bcfb

Browse files
committed
ci: add optional metrics installation into the GitHub workflow
Closes #100
1 parent b75adb4 commit bd7bcfb

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/fast_testing.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,34 @@ jobs:
2424
- '2.6'
2525
- '2.7'
2626
- '2.8'
27+
- '2.10'
28+
metrics-version:
29+
- ''
30+
- '0.10.0'
31+
- '0.11.0'
32+
- '0.13.0'
2733
coveralls: [false]
2834
include:
29-
- tarantool: '2.8'
35+
- tarantool: '2.10'
36+
metrics-version: '0.13.0'
3037
coveralls: true
3138

3239
runs-on: ubuntu-latest
3340
steps:
34-
- name: Install tarantool ${{ matrix.tarantool }}
41+
- name: Install tarantool ${{ matrix.tarantool }} (< 2.10)
42+
if: matrix.tarantool != '2.10'
3543
uses: tarantool/setup-tarantool@v1
3644
with:
3745
tarantool-version: ${{ matrix.tarantool }}
3846

47+
# It's a temporary hack. May be removed after the fix:
48+
# https://github.com/tarantool/setup-tarantool/issues/19
49+
- name: Install tarantool ${{ matrix.tarantool }} (2.10)
50+
if: matrix.tarantool == '2.10'
51+
run: |
52+
curl -L https://tarantool.io/tWsLBdI/release/2/installer.sh | bash
53+
sudo apt install -y tarantool tarantool-dev
54+
3955
- name: Clone the module
4056
uses: actions/checkout@v2
4157

@@ -50,6 +66,10 @@ jobs:
5066
run: make deps
5167
if: steps.cache-rocks.outputs.cache-hit != 'true'
5268

69+
- name: Install metrics
70+
if: matrix.metrics-version != ''
71+
run: tarantoolctl rocks install metrics ${{ matrix.metrics-version }}
72+
5373
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH
5474

5575
- run: make check

0 commit comments

Comments
 (0)