Skip to content

Commit c36c38f

Browse files
committed
Cache apt packages
1 parent 5107b70 commit c36c38f

File tree

4 files changed

+55243
-1456
lines changed

4 files changed

+55243
-1456
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
runs-on: [ubuntu-latest]
12-
tarantool: ['2.6']
12+
tarantool: ['1.10', '2.4', '2.5', '2.6', '2.7']
1313
runs-on: ${{ matrix.runs-on }}
1414
steps:
1515
- uses: actions/checkout@v2
@@ -20,8 +20,22 @@ jobs:
2020
tarantool-version: ${{ matrix.tarantool }}
2121
cache-key: tarantool-${{ matrix.tarantool }}-${{ runner.os }}-${{ github.run_id }}
2222

23-
# - name: Setup from cache
24-
# uses: ./
25-
# with:
26-
# tarantool-version: ${{ matrix.tarantool }}
27-
# cache-key: tarantool-${{ matrix.tarantool }}-${{ runner.os }}-${{ github.run_id }}
23+
- name: Uninstall tarantool
24+
run: sudo apt-get -y remove tarantool tarantool-dev tarantool-common
25+
26+
- name: Setup from cache
27+
uses: ./
28+
with:
29+
tarantool-version: ${{ matrix.tarantool }}
30+
cache-key: tarantool-${{ matrix.tarantool }}-${{ runner.os }}-${{ github.run_id }}
31+
32+
- run: tarantool --version
33+
- name: Check version
34+
run: |
35+
T=$(tarantool -e 'print(_TARANTOOL:match("%d+%.%d+")); os.exit()')
36+
if [ "$T" != "${{ matrix.tarantool }}" ]; then
37+
echo "Tarantool version is $T, expected ${{ matrix.tarantool }}"
38+
exit 1
39+
else
40+
echo "Tarantool version is $T, as expected"
41+
fi

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ inputs:
55
description: 'Tarantool version'
66
default: '2.5'
77
cache-key:
8-
description: 'The key used for caching apt packages'
9-
required: true
8+
description: >
9+
Custom key used for apt packages caching.
10+
Default is "tarantool-<VERSION>-<RUNNER.OS>"
11+
required: false
1012
runs:
1113
using: 'node12'
1214
main: dist/main/index.js

0 commit comments

Comments
 (0)