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
+ # Run not only on tags, otherwise dependent job will skip.
10
+ version-check :
11
+ runs-on : ubuntu-20.04
12
+ steps :
13
+ - name : Check module version
14
+ uses : tarantool/actions/check-module-version@igrishnov/gh-204-add-hardcoded-versioning-support
15
+ with :
16
+ module-name : ' graphql'
17
+
9
18
publish-rockspec-scm-1 :
10
19
if : github.ref == 'refs/heads/master'
20
+ needs : version-check
11
21
runs-on : ubuntu-20.04
12
22
steps :
13
23
- uses : actions/checkout@v2
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