ci: Add bashcov codecov report

pull/2101/head
Noah Gorny 2022-03-02 23:44:42 +02:00
parent be9a838015
commit be755d63af
1 changed files with 17 additions and 0 deletions

View File

@ -22,6 +22,23 @@ jobs:
- name: Test code
run: test/run
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Install Ruby dependencies
run: bundle update --bundler && bundle install
- name: Run tests
run: bashcov test/run
- name: Upload reports to Codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -f coverage/codecov-result.json -Z
build-docs:
runs-on: ubuntu-latest