Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/test-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, lua=5.5, luajit=@v2.0, luajit=@v2.1]
# TODO: re-add lua=5.5 once argparse has been updated
lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, luajit=@v2.0, luajit=@v2.1]
steps:
# Checks-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v6
Expand All @@ -34,12 +36,17 @@ jobs:
run: |
luarocks install lua-cjson
luarocks install luacov
luarocks install tested
luarocks install luacov-coveralls

- name: run toml-test with coverage
continue-on-error: true
run: |
toml-test test -parallel 1 -toml=1.1 -decoder="lua_install/bin/lua -lluacov spec/decoder.lua" -encoder="lua_install/bin/lua -lluacov spec/encoder.lua"

- name: Run unit tests
run: |
tested -c

- name: Report test coverage
if: success()
Expand Down
2 changes: 1 addition & 1 deletion tests/date_testing.tl → tests/date_test.tl
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ local_date = 1979-05-27]]

end)

return tested
return tested
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ tested.test("slightly above max nesting depth", function()
tested.assert({given="edge of nesting", should="does not raise an error", expected=true, actual=ok})
end)

return tested
return tested
Loading