Skip to content

Commit

Permalink
support 2.11 bootstrap_strategy and derive default_cfg
Browse files Browse the repository at this point in the history
	* feat: support bootstrap_strategy (2.11)
	* feat: derive load_cfg/default_cfg
	* fix: ensure options of box.cfg always cleared before passing
	  to box.cfg (or wrap_box_cfg, or boxcfg)
	* feat: added annotations for config and config.etcd
	* feat: use module-aware logger (2.11 feature)
	* feat: expose load_cfg/{default_cfg,...} to config._load_cfg
  • Loading branch information
Vladislav Grubov committed Sep 13, 2023
1 parent 0ade1c5 commit d047a6a
Show file tree
Hide file tree
Showing 10 changed files with 394 additions and 77 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create and push rockspec for moonlibs/config
name: Run unit tests

on:
push:
Expand All @@ -7,13 +7,40 @@ env:
ROCK_NAME: config

jobs:
test-matrix:
run-luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: tarantool/setup-tarantool@v2
with:
tarantool-version: '2.10.7'
- name: install luacheck 0.26.0
run: tarantoolctl rocks install luacheck 0.26.0
- name: run luacheck
run: .rocks/bin/luacheck .
run-unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["1.10.15", "2.8.4", "2.10.6", "2.11.0", "2.11.1"]
version: ["1.10.15", "2.8.4", "2.10.6", "2.10.7-gc64-amd64", "2.11.0", "2.11.1"]
steps:
- uses: actions/checkout@master
- uses: docker/setup-buildx-action@v2
- name: run test suite for ${{matrix.version}}
run: make test-${{matrix.version}}
run: make test-${{matrix.version}}
run-coverage-report:
runs-on: ubuntu-latest
steps:
- uses: tarantool/setup-tarantool@v2
with:
tarantool-version: '2.10.7'
- name: install luacov-console 1.1.0
run: tarantoolctl rocks install luacov-console 1.1.0
- name: install luacov-coveralls 0.2.3
run: tarantoolctl rocks install --server=http://luarocks.org luacov-coveralls 0.2.3
- name: prepare coverage report
run: .rocks/bin/luacov-console "$(pwd)" && .rocks/bin/luacov-console -s
# - name: publish coveralls report
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# run: .rocks/bin/luacov-coveralls -v
19 changes: 19 additions & 0 deletions .luacov
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
runreport = false
deletestats = false

exclude = {
"spec/",
"test/",
"test_peek",
"%.rocks/",
"builtin/",
}

coveralls = {
root = "/",
debug = true,
pathcorrect = {
{ "^/home/runner/work/config/config/", "" },
{ "^/source/config", "" },
},
}
Loading

0 comments on commit d047a6a

Please sign in to comment.