diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 3e25300..c6690fc 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -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 @@ -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() diff --git a/tests/date_testing.tl b/tests/date_test.tl similarity index 99% rename from tests/date_testing.tl rename to tests/date_test.tl index f412d2c..e44c367 100644 --- a/tests/date_testing.tl +++ b/tests/date_test.tl @@ -41,4 +41,4 @@ local_date = 1979-05-27]] end) -return tested \ No newline at end of file +return tested diff --git a/tests/max_nesting_depth.tl b/tests/max_nesting_depth_test.tl similarity index 99% rename from tests/max_nesting_depth.tl rename to tests/max_nesting_depth_test.tl index a68db64..e53405a 100644 --- a/tests/max_nesting_depth.tl +++ b/tests/max_nesting_depth_test.tl @@ -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 \ No newline at end of file +return tested