From 8dd4ce85ef4794f3b8e2eddec7de8d2bb5198110 Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Mon, 26 Oct 2026 12:21:13 -0400 Subject: [PATCH] Merge stable matrix coverage in Coveralls Publish and finalize parallel LCOV reports from all stable Ruby/Grape jobs. Preserve existing SimpleCov file accounting and refresh the Coveralls badge and contributor guidance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/test.yml | 14 +++++++++++++- CHANGELOG.md | 1 + README.md | 4 +++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f23545f..1d53b4a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,10 +33,22 @@ jobs: bundler-cache: true - run: bundle exec rake spec - uses: coverallsapp/github-action@v2 - if: matrix.ruby == '3.3' && matrix.grape == '4' + if: matrix.ruby != 'ruby-head' with: + github-token: ${{ secrets.GITHUB_TOKEN }} file: coverage/lcov/grape-rabl.lcov format: lcov + flag-name: test-${{ strategy.job-index }} + parallel: true + coverage: + name: Finish Coveralls + needs: test + runs-on: ubuntu-latest + steps: + - uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true lint: runs-on: ubuntu-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b7333e..09cd4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Your contribution here. +* [#56](https://github.com/ruby-grape/grape-rabl/pull/56): Merge Coveralls coverage across the stable Ruby/Grape matrix and refresh the coverage badge - [@dblock](https://github.com/dblock). * [#55](https://github.com/ruby-grape/grape-rabl/pull/55): Replace deprecated `Tilt::Cache` with a synchronized Hash cache for templates and layouts - [@dblock](https://github.com/dblock). * [#54](https://github.com/ruby-grape/grape-rabl/pull/54): Replaced Travis CI with GitHub Actions, modernized RuboCop and coverage reporting, and added a Ruby 2.7-4.0/Grape 1.x-4.x compatibility matrix; Ruby 2.7 or newer is now required - [@dblock](https://github.com/dblock). * [#54](https://github.com/ruby-grape/grape-rabl/pull/54): Fixed fallback rendering with newer Grape versions, including Grape 4.x - [@dblock](https://github.com/dblock). diff --git a/README.md b/README.md index 99000b6..f36a4fe 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Use [Rabl](https://github.com/nesquena/rabl) templates in [Grape](https://github [![Gem Version](http://img.shields.io/gem/v/grape-rabl.svg)](http://badge.fury.io/rb/grape-rabl) [![Build Status](https://github.com/ruby-grape/grape-rabl/actions/workflows/test.yml/badge.svg)](https://github.com/ruby-grape/grape-rabl/actions/workflows/test.yml) [![Code Climate](https://codeclimate.com/github/ruby-grape/grape-rabl.svg)](https://codeclimate.com/github/ruby-grape/grape-rabl) -[![Coverage Status](https://img.shields.io/coveralls/ruby-grape/grape-rabl.svg)](https://coveralls.io/r/ruby-grape/grape-rabl?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/ruby-grape/grape-rabl/badge.svg?branch=master)](https://coveralls.io/github/ruby-grape/grape-rabl?branch=master) # Table of Contents @@ -214,6 +214,8 @@ end ## Specs +Spec runs generate `coverage/lcov/grape-rabl.lcov` with SimpleCov. CI merges coverage from every stable Ruby/Grape matrix job in Coveralls using the built-in GitHub token; ruby-head remains experimental and does not publish coverage. + See ["Writing Tests"](https://github.com/ruby-grape/grape#writing-tests) in [grape](https://github.com/ruby-grape/grape) README. Enjoy :)