File tree Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 6
6
tags : ['*']
7
7
8
8
jobs :
9
+ version-check :
10
+ # We need this job to run only on push with tag.
11
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
12
+ runs-on : ubuntu-20.04
13
+ steps :
14
+ - name : Check module version
15
+ uses : tarantool/actions/check-module-version@master
16
+ with :
17
+ module-name : ' graphql'
18
+
9
19
publish-rockspec-scm-1 :
10
20
if : github.ref == 'refs/heads/master'
11
21
runs-on : ubuntu-20.04
18
28
19
29
publish-rockspec-tag :
20
30
if : startsWith(github.ref, 'refs/tags/')
31
+ needs : version-check
21
32
runs-on : ubuntu-20.04
22
33
steps :
23
34
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ build = {
21
21
type = ' builtin' ,
22
22
modules = {
23
23
[' graphql.init' ] = ' graphql/init.lua' ,
24
+ [' graphql.version' ] = ' graphql/version.lua' ,
24
25
[' graphql.execute' ] = ' graphql/execute.lua' ,
25
26
[' graphql.introspection' ] = ' graphql/introspection.lua' ,
26
27
[' graphql.parse' ] = ' graphql/parse.lua' ,
Original file line number Diff line number Diff line change 1
- return {VERSION = ' unknown ' }
1
+ return {_VERSION = require ( ' graphql.version ' ) }
Original file line number Diff line number Diff line change
1
+ -- Сontains the module version.
2
+ -- Requires manual update in case of release commit.
3
+
4
+ return ' 0.2.0'
Original file line number Diff line number Diff line change @@ -1090,7 +1090,7 @@ function g.test_util_find_by_name()
1090
1090
end
1091
1091
1092
1092
g .test_version = function ()
1093
- t .assert_type (require (' graphql' ).VERSION , ' string' )
1093
+ t .assert_type (require (' graphql' )._VERSION , ' string' )
1094
1094
end
1095
1095
1096
1096
function g .test_is_array ()
You can’t perform that action at this time.
0 commit comments