diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2898e80..7baa50c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,9 +53,21 @@ jobs: lua_versions: 5.1.1 luarocks_versions: 5.1.1:3.11.1 - - name: run test + - name: Install dependencies shell: bash run: | luarocks install luacheck luarocks install busted + luarocks install luacov-coveralls + + - name: run test + shell: bash + run: | busted ./test + + - name: Report test coverage + if: success() + continue-on-error: true + run: luacov-coveralls -i drash.nvim -e .luarocks + env: + COVERALLS_REPO_TOKEN: ${{ github.token }} diff --git a/README.md b/README.md index ed54289..ccd0e29 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # drash.nvim -[![Ci](https://github.com/sammyshear/drash.nvim/actions/workflows/ci.yml/badge.svg)](https://github.com/sammyshear/drash.nvim/actions/workflows/ci.yml) +![GitHub License](https://img.shields.io/github/license/sammyshear/drash.nvim?style=for-the-badge) +![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/sammyshear/drash.nvim/ci.yml?style=for-the-badge) +![Coveralls](https://img.shields.io/coverallsCoverage/github/sammyshear/drash.nvim?style=for-the-badge) A Neovim plugin for helping to write a Drash/D'var Torah without leaving Neovim. It relies on the Sefaria API to provide info on the Parsha and any supporting texts you might need.