Skip to content

Commit cc95faa

Browse files
committed
[devtools] sync
1 parent f3ef581 commit cc95faa

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ jobs:
3737
rom_core_from_master: 'true'
3838
sequel_from_master: 'true'
3939
env:
40-
CLASSPATH: ''
4140
COVERAGE: "${{matrix.coverage}}"
42-
CODACY_RUN_LOCAL: true
43-
CODACY_PROJECT_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"
41+
COVERAGE_TOKEN: "${{secrets.CODACY_PROJECT_TOKEN}}"
4442
APT_DEPS: libpq-dev libmysqlclient-dev libsqlite3-dev
4543
FAIL_ON_WARNINGS: "${{matrix.fail_on_warnings}}"
4644
DRY_TYPES_FROM_MASTER: "${{matrix.dry_types_from_master}}"
@@ -62,6 +60,12 @@ jobs:
6260
run: bundle install --jobs 4 --retry 3
6361
- name: Run all tests
6462
run: bundle exec rake
63+
- name: Run codacy-coverage-reporter
64+
uses: codacy/codacy-coverage-reporter-action@master
65+
if: env.COVERAGE == 'true' && env.COVERAGE_TOKEN != ''
66+
with:
67+
project-token: "${{secrets.CODACY_PROJECT_TOKEN}}"
68+
coverage-reports: coverage/coverage.xml
6569
services:
6670
mysql:
6771
image: mysql:5.7

.github/workflows/docsite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# this file is managed by rom-rb/devtools project
22

3-
name: Update docs on rom-rb.org
3+
name: docsite
44

55
on:
66
push:

Gemfile.devtools

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@
55
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

77
group :test do
8-
# 0.18.x breaks codacy result parser
9-
gem "simplecov", "0.17.1", require: false, platforms: :ruby
10-
11-
gem "codacy-coverage", require: false, platforms: :ruby
8+
gem "simplecov", require: false, platforms: :ruby
9+
gem "simplecov-cobertura", require: false, platforms: :ruby
1210

1311
gem "warning" if RUBY_VERSION >= "2.4.0"
1412
end
1513

1614
group :tools do
1715
# this is the same version that we use on codacy
18-
gem "rubocop", "0.71.0"
16+
gem "rubocop", "0.82.0"
1917
end

spec/support/coverage.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
# this file is managed by rom-rb/devtools
44

55
if ENV["COVERAGE"] == "true"
6-
require "codacy-coverage"
6+
require "simplecov"
7+
require "simplecov-cobertura"
78

8-
Codacy::Reporter.start
9+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
10+
11+
SimpleCov.start do
12+
add_filter "/spec/"
13+
enable_coverage :branch
14+
end
915
end

0 commit comments

Comments
 (0)