@@ -36,27 +36,22 @@ jobs:
36
36
steps :
37
37
- uses : actions/checkout@v4
38
38
39
- - id : get-latest
40
- run : |
41
- node <<'SCRIPT'
42
- process.env["INPUT_TARANTOOL-VERSION"] = "${{ matrix.tarantool }}"
43
- process.env["INPUT_NIGHTLY-BUILD"] = "${{ matrix.nightly }}"
44
- require("./dist/main").latest_version().then(v => {
45
- console.log(v)
46
- require("./dist/main").setActionOutput('version', v);
47
- })
48
- SCRIPT
39
+ - id : latest-version
40
+ uses : ./.github/actions/latest-version
41
+ with :
42
+ tarantool-series : ${{ matrix.tarantool }}
43
+ nightly-build : ${{ matrix.nightly }}
49
44
50
45
- name : Setup from scratch
51
46
uses : ./
52
47
with :
53
48
tarantool-version : ${{ matrix.tarantool }}
54
49
nightly-build : ${{ matrix.nightly }}
55
50
56
- - name : Check precise version
57
- run : |
58
- dpkg -s tarantool | grep '^Version: ${{ steps.get- latest.outputs.version }}'
59
- # It'll also fail if tarantool is installed from cache but not from apt-get
51
+ - uses : ./.github/actions/verify- version
52
+ with :
53
+ tarantool-version : ' ${{ steps.latest-version .outputs.git-describe }}'
54
+ from- cache : false
60
55
61
56
- name : Uninstall tarantool
62
57
run : sudo apt-get -y remove tarantool tarantool-dev tarantool-common
@@ -67,23 +62,10 @@ jobs:
67
62
tarantool-version : ${{ matrix.tarantool }}
68
63
nightly-build : ${{ matrix.nightly }}
69
64
70
- - name : Verify install from cache
71
- run : |
72
- # Fail if tarantool is installed from apt-get
73
- if dpkg -s tarantool; then
74
- echo "Tarantool wasn't restored from cache"
75
- exit 1
76
- fi
77
-
78
- - name : Check branch version
79
- run : |
80
- T=$(tarantool -e 'print(_TARANTOOL:match("%d+%.%d+")); os.exit()')
81
- if [ "$T" != "${{ matrix.tarantool }}" ]; then
82
- echo "Tarantool version is $T, expected ${{ matrix.tarantool }}"
83
- exit 1
84
- else
85
- echo "Tarantool version is $T, as expected"
86
- fi
65
+ - uses : ./.github/actions/verify-version
66
+ with :
67
+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
68
+ from-cache : true
87
69
88
70
test-concurrency :
89
71
strategy :
0 commit comments