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()