Skip to content

Commit 0e27583

Browse files
authored
fix: setup qlty for code coverage reports (#66)
* fix(ci): replace dismissed cc reported with qlty * fix(docs): update qlty badges from readme
1 parent e19de59 commit 0e27583

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
uses: ./.github/workflows/test.yml
1313
secrets:
14-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
14+
QLTY_COVERAGE_TOKEN: ${{secrets.QLTY_COVERAGE_TOKEN}}
1515
release-please:
1616
needs:
1717
- lint
@@ -47,7 +47,7 @@ jobs:
4747
- uses: ruby/setup-ruby@v1
4848
with:
4949
bundler-cache: true
50-
ruby-version: 2.7.0
50+
ruby-version: 3.4
5151
if: ${{steps.release.outputs.release_created}}
5252
- run: bundle install
5353
if: ${{steps.release.outputs.release_created}}

.github/workflows/test.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- synchronize
99
workflow_call:
1010
secrets:
11-
CC_TEST_REPORTER_ID:
11+
QLTY_COVERAGE_TOKEN:
1212
required: true
1313

1414
jobs:
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, head]
21+
ruby: [2.5, 2.6, 2.7, "3.0", 3.1, 3.2, 3.3, 3.4, head]
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: ruby/setup-ruby@v1
@@ -34,12 +34,10 @@ jobs:
3434
- uses: ruby/setup-ruby@v1
3535
with:
3636
bundler-cache: true
37-
ruby-version: 3.2
37+
ruby-version: 3.4
3838
- run: bundle install
39-
- name: Test & publish code coverage
40-
uses: paambaati/codeclimate-action@v6.0.0
41-
env:
42-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
39+
- run: bundle exec rake
40+
- uses: qltysh/qlty-action/coverage@v2
4341
with:
44-
coverageCommand: bundle exec rake
45-
debug: true
42+
token: ${{secrets.QLTY_COVERAGE_TOKEN}}
43+
files: coverage/.resultset.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ItaxCode
22

3-
[![Gem Version](https://badge.fury.io/rb/itax_code.svg)](https://badge.fury.io/rb/itax_code) [![Maintainability](https://api.codeclimate.com/v1/badges/6ce5347018f4b448098f/maintainability)](https://codeclimate.com/github/matteoredz/itax-code/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/6ce5347018f4b448098f/test_coverage)](https://codeclimate.com/github/matteoredz/itax-code/test_coverage)
3+
[![Gem Version](https://badge.fury.io/rb/itax_code.svg)](https://badge.fury.io/rb/itax_code) [![Maintainability](https://qlty.sh/gh/matteoredz/projects/itax-code/maintainability.svg)](https://qlty.sh/gh/matteoredz/projects/itax-code) [![Code Coverage](https://qlty.sh/gh/matteoredz/projects/itax-code/coverage.svg)](https://qlty.sh/gh/matteoredz/projects/itax-code)
44

55
A Ruby Gem to encode, decode, and validate the Italian Tax Code (Fiscal Code, Codice Fiscale), dealing with [Omocodia](https://it.wikipedia.org/wiki/Omocodia) too.
66

0 commit comments

Comments
 (0)