Skip to content

Commit 224271b

Browse files
committed
⬆️ kettle-soup-cover v1.0.5
1 parent c7ae389 commit 224271b

File tree

7 files changed

+25
-20
lines changed

7 files changed

+25
-20
lines changed

.envrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ PATH_add bin
1616

1717
### External Testing Controls
1818
export K_SOUP_COV_DO=true # Means you want code coverage
19-
# Available formats are html, xml, rcov, lcov, json, tty
2019
export K_SOUP_COV_COMMAND_NAME="Minitest Coverage"
21-
export K_SOUP_COV_FORMATTERS="html,tty"
20+
# Available formats are html, xml, rcov, lcov, json, tty
21+
export K_SOUP_COV_FORMATTERS="html,xml,rcov,lcov,json,tty"
2222
export K_SOUP_COV_MIN_BRANCH=69 # Means you want to enforce X% branch coverage
2323
export K_SOUP_COV_MIN_LINE=88 # Means you want to enforce X% line coverage
2424
export K_SOUP_COV_MIN_HARD=true # Means you want the build to fail if the coverage thresholds are not met

.github/workflows/coverage.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: Test Coverage
22

33
env:
4-
K_SOUP_COV_MIN_BRANCH: 2
5-
K_SOUP_COV_MIN_LINE: 46
4+
K_SOUP_COV_MIN_BRANCH: 69
5+
K_SOUP_COV_MIN_LINE: 88
66
K_SOUP_COV_MIN_HARD: true
77
K_SOUP_COV_DO: true
8-
K_SOUP_COV_COMMAND_NAME: "RSpec Coverage"
8+
K_SOUP_COV_COMMAND_NAME: "Minitest Coverage"
99

1010
on:
1111
push:
@@ -93,27 +93,31 @@ jobs:
9393
path: code-coverage-results.md
9494
continue-on-error: ${{ matrix.experimental != 'false' }}
9595

96-
- name: Coveralls
96+
- name: Upload coverage to Coveralls
9797
uses: coverallsapp/github-action@master
98+
if: ${{ github.event_name != 'pull_request' }}
9899
with:
99100
github-token: ${{ secrets.GITHUB_TOKEN }}
100101
continue-on-error: ${{ matrix.experimental != 'false' }}
101102

103+
- name: Upload coverage to QLTY
104+
uses: qltysh/qlty-action/coverage@main
105+
with:
106+
coverage-token: {{secrets.QLTY_COVERAGE_TOKEN}}
107+
files: coverage/.resultset.json
108+
if: ${{ github.event_name != 'pull_request' }}
109+
continue-on-error: ${{ matrix.experimental != 'false' }}
110+
102111
- name: Upload coverage to Codecov
103112
uses: codecov/codecov-action@v5
113+
if: ${{ github.event_name != 'pull_request' }}
104114
with:
105115
token: ${{ secrets.CODECOV_TOKEN }}
116+
continue-on-error: ${{ matrix.experimental != 'false' }}
106117

107118
- name: Upload test results to Codecov
108119
if: ${{ !cancelled() }}
109120
uses: codecov/test-results-action@v1
110121
with:
111122
token: ${{ secrets.CODECOV_TOKEN }}
112-
113-
- name: Upload results to QLTY
114-
uses: qltysh/qlty-action/coverage@main
115-
with:
116-
coverage-token: {{secrets.QLTY_COVERAGE_TOKEN}}
117-
files: coverage/.resultset.json
118-
if: ${{ github.event_name != 'pull_request' }}
119123
continue-on-error: ${{ matrix.experimental != 'false' }}

.rubocop_gradual.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"lib/tasks/masq_tasks.rake:1483017689": [
2323
[39, 21, 42, "Style/SafeNavigation: Use safe navigation (`&.`) instead of checking if an object exists before calling the method.", 4054527944]
2424
],
25-
"masq2.gemspec:491945488": [
25+
"masq2.gemspec:321617937": [
2626
[72, 3, 26, "Gemspec/DependencyVersion: Dependency version specification is required.", 1260806891],
2727
[73, 3, 32, "Gemspec/DependencyVersion: Dependency version specification is required.", 855136127],
2828
[76, 3, 33, "Gemspec/DependencyVersion: Dependency version specification is required.", 3159729161],
2929
[78, 3, 30, "Gemspec/DependencyVersion: Dependency version specification is required.", 2010339150],
30-
[92, 3, 72, "Gemspec/DependencyVersion: Dependency version specification is required.", 2491072344]
30+
[93, 3, 72, "Gemspec/DependencyVersion: Dependency version specification is required.", 2491072344]
3131
],
3232
"test/test_helper.rb:2496707493": [
3333
[206, 45, 1, "Lint/AssignmentInCondition: Wrap assignment in parentheses if intentional", 177560]

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ GEM
176176
rdoc (>= 4.0.0)
177177
reline (>= 0.4.2)
178178
json (2.10.2)
179-
kettle-soup-cover (1.0.4)
179+
kettle-soup-cover (1.0.5)
180180
simplecov (~> 0.22)
181181
simplecov-cobertura (~> 2.1)
182182
simplecov-console (~> 0.9, >= 0.9.1)
@@ -420,7 +420,7 @@ DEPENDENCIES
420420
bundler-audit (~> 0.9.2)
421421
combustion (~> 1.5)
422422
debug (>= 1.0.0)
423-
kettle-soup-cover (~> 1.0, >= 1.0.4)
423+
kettle-soup-cover (~> 1.0, >= 1.0.5)
424424
logger
425425
masq2!
426426
minitest (~> 5.25, >= 5.25.5)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ or one of the others at the head of this README.
352352
[🔑codecovi♻️]: https://codecov.io/gh/oauth-xx/masq2/branch/main/graph/badge.svg?token=xqVPZjg76X
353353
[🔑coveralls]: https://coveralls.io/github/oauth-xx/masq2?branch=main
354354
[🔑coveralls-img]: https://coveralls.io/repos/github/oauth-xx/masq2/badge.svg?branch=main
355-
[🔑depfu]: https://depfu.com/github/oauth-xx/masq2
356-
[🔑depfui♻️]: https://badges.depfu.com/badges/85187dfdd2ecf7839b2ec78c64d2bf4e/count.svg
355+
[🔑depfu]: https://depfu.com/github/oauth-xx/masq2?project_id=60301
356+
[🔑depfui♻️]: https://badges.depfu.com/badges/c31817967a3a2467ee56d3e95c3a2802/count.svg
357357
[🖐codeQL]: https://github.com/oauth-xx/masq2/security/code-scanning
358358
[🖐codeQL-img]: https://github.com/oauth-xx/masq2/actions/workflows/codeql-analysis.yml/badge.svg
359359
[🚎1-an-wf]: https://github.com/oauth-xx/masq2/actions/workflows/ancient.yml

gemfiles/modular/coverage.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# We run code coverage on the latest version of Ruby only.
44

55
# Coverage
6-
gem "kettle-soup-cover", "~> 1.0", ">= 1.0.4"
6+
# Already included in gemspec

masq2.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Gem::Specification.new do |spec|
8484
spec.add_development_dependency("rake", "~> 13.0") # ruby >= 2.2
8585

8686
# Testing
87+
spec.add_development_dependency("kettle-soup-cover", "~> 1.0", ">= 1.0.5") # ruby >= 2.7
8788
spec.add_development_dependency("rails-controller-testing", "~> 1.0", ">= 1.0.5")
8889

8990
# Linting - rubocop-lts v18 is a rubocop wrapper for Ruby >= 2.7,

0 commit comments

Comments
 (0)