From a73d2ddf05671be7dcfb8ac1360d8d69f1d11b56 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 10:23:56 -0500 Subject: [PATCH 1/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 9ec0f7a..7c0d4e8 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - luaVersion: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, luajit=2.0, luajit=@v2.1.ROLLING] + lua: [lua=5.1, lua=5.2, lua=5.3, lua=5.4, luajit=2.0, luajit=@v2.1.ROLLING] steps: # Checks-out the repository under $GITHUB_WORKSPACE. - uses: actions/checkout@v4 From 8944b927e53aacfded0348a063b7baf191fa5545 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 10:29:03 -0500 Subject: [PATCH 2/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 7c0d4e8..8ad535a 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -18,19 +18,20 @@ jobs: - name: Install Lua (${{ matrix.lua }}) run: | pip install hererocks - hererocks lua_install -r^ --${{ matrix.lua }} + hererocks -r^ --${{ matrix.lua }} lua_install - name: Install toml-test run: go install github.com/toml-lang/toml-test/cmd/toml-test@v1.5.0 - name: install depedencies run: | + source lua_install/bin/activate luarocks install lua-cjson luarocks install luacov luarocks install luacov-coveralls - name: run unit tests with coverage - run: toml-test lua -llcov spec/test-runner.lua + run: toml-test lua -lluacov spec/test-runner.lua - name: Report test coverage if: success() From 0290436930e830b3743c308d51ee2b9fce3d8581 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 10:32:59 -0500 Subject: [PATCH 3/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 8ad535a..84d6f58 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -1,6 +1,9 @@ name: Run Tests and Code Coverage -on: [push, pull_request] +on: + push: + branches: [ main ] + pull_request: jobs: test: @@ -31,7 +34,7 @@ jobs: luarocks install luacov-coveralls - name: run unit tests with coverage - run: toml-test lua -lluacov spec/test-runner.lua + run: toml-test -- lua -lluacov spec/test-runner.lua - name: Report test coverage if: success() From 017224657d21abaa1f741507bdfe4f0b7aa77527 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 10:35:33 -0500 Subject: [PATCH 4/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 84d6f58..aa2bfaa 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -34,7 +34,10 @@ jobs: luarocks install luacov-coveralls - name: run unit tests with coverage - run: toml-test -- lua -lluacov spec/test-runner.lua + continue-on-error: true + run: | + source lua_install/bin/activate + toml-test -- lua -lluacov spec/test-runner.lua - name: Report test coverage if: success() From 13ffb0a72bc1ac87c377e38a1e06d465b127dc7d Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 10:40:25 -0500 Subject: [PATCH 5/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index aa2bfaa..19145f7 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -22,13 +22,13 @@ jobs: run: | pip install hererocks hererocks -r^ --${{ matrix.lua }} lua_install + echo lua_install/bin >> $GITHUB_PATH - name: Install toml-test run: go install github.com/toml-lang/toml-test/cmd/toml-test@v1.5.0 - name: install depedencies run: | - source lua_install/bin/activate luarocks install lua-cjson luarocks install luacov luarocks install luacov-coveralls @@ -36,8 +36,7 @@ jobs: - name: run unit tests with coverage continue-on-error: true run: | - source lua_install/bin/activate - toml-test -- lua -lluacov spec/test-runner.lua + toml-test -- lua -lluacov spec/toml-test.lua - name: Report test coverage if: success() From 2b1545f337175c831270005de20154852e8825a6 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 10:44:27 -0500 Subject: [PATCH 6/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index 19145f7..f410131 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -36,7 +36,7 @@ jobs: - name: run unit tests with coverage continue-on-error: true run: | - toml-test -- lua -lluacov spec/toml-test.lua + toml-test -- lua_install/bin/lua -lluacov spec/toml-test.lua - name: Report test coverage if: success() From 1cd35195fb73f08784d0fc849ac2c5cbb92935a2 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 11:04:14 -0500 Subject: [PATCH 7/8] Update test-and-coverage.yml --- .github/workflows/test-and-coverage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-coverage.yml b/.github/workflows/test-and-coverage.yml index f410131..73a1677 100644 --- a/.github/workflows/test-and-coverage.yml +++ b/.github/workflows/test-and-coverage.yml @@ -33,10 +33,10 @@ jobs: luarocks install luacov luarocks install luacov-coveralls - - name: run unit tests with coverage + - name: run toml-test with coverage continue-on-error: true run: | - toml-test -- lua_install/bin/lua -lluacov spec/toml-test.lua + toml-test -parallel 1 -- lua_install/bin/lua -lluacov spec/toml-test.lua - name: Report test coverage if: success() From 6344875f34b15c0cb3bc97ad292d4affce652aa7 Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Thu, 31 Oct 2024 11:12:32 -0500 Subject: [PATCH 8/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6c2ded0..841478a 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ # tinytoml +[![Run Tests and Code Coverage](https://github.com/FourierTransformer/tinytoml/actions/workflows/test-and-coverage.yml/badge.svg)](https://github.com/FourierTransformer/tinytoml/actions/workflows/test-and-coverage.yml) [![Coverage Status](https://coveralls.io/repos/github/FourierTransformer/tinytoml/badge.svg?branch=refs/pull/1/merge)](https://coveralls.io/github/FourierTransformer/tinytoml?branch=refs/pull/1/merge)