Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/cops_and_specs.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Lint

on:
push:
pull_request:

jobs:
rubocop:
name: Rubocop
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: sanger/.github/.github/actions/setup/checkout@master

- name: Setup Ruby
uses: sanger/.github/.github/actions/setup/ruby@master

- name: Run rubocop
run: bundle exec rubocop -c .rubocop.yml --fail-fast
32 changes: 32 additions & 0 deletions .github/workflows/ruby_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Ruby Tests

env:
TZ: Europe/London

on:
push:
pull_request:

jobs:
test:
name: Rspec
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: sanger/.github/.github/actions/setup/checkout@master

- name: Setup Ruby
uses: sanger/.github/.github/actions/setup/ruby@master

- name: Run rspec
run: bundle exec rspec

- name: Upload coverage reports to Codecov
uses: sanger/.github/.github/actions/tests/codecov@master
with:
name: ${{ github.run_id }}_${{ github.job }}_${{ github.event_name }}
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ github.event_name }}
disable-search: true
files: ${{ github.workspace }}/lcov.info
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/.bundle/
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status

# coverage
/coverage/
lcov.info
23 changes: 23 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# frozen_string_literal: true

# https://github.com/simplecov-ruby/simplecov#getting-started

require 'simplecov_json_formatter'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov::Formatter::LcovFormatter.config.single_report_path = 'lcov.info'
SimpleCov.formatters =
SimpleCov::Formatter::MultiFormatter.new(
[SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::JSONFormatter, SimpleCov::Formatter::LcovFormatter]
)
SimpleCov.start :rails do
add_filter '/coverage/'
add_filter '/spec/'

enable_coverage :branch

# You can add_filter here to add anything else you don't want to cover

# Mainly here for reference, and wont be running it again
add_filter '/lib/ability_analysis/spec_generator.rb'
end
6 changes: 4 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GEM
base64 (0.1.1)
coderay (1.1.3)
diff-lcs (1.5.0)
docile (1.4.0)
docile (1.4.1)
json (2.6.3)
language_server-protocol (3.17.0.3)
method_source (1.0.0)
Expand Down Expand Up @@ -66,7 +66,8 @@ GEM
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov-html (0.13.2)
simplecov-lcov (0.9.0)
simplecov_json_formatter (0.1.4)
unicode-display_width (2.4.2)
yard (0.9.34)
Expand All @@ -83,6 +84,7 @@ DEPENDENCIES
rubocop (~> 1.56)
rubocop-rspec (~> 2.24)
simplecov (~> 0.22)
simplecov-lcov (~> 0.9)
yard (~> 0.9)

BUNDLED WITH
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

# RecordLoader

![Cops and Specs](https://github.com/sanger/record_loader/workflows/Cops%20and%20Specs/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/0ce827d110dfced197ab/maintainability)](https://codeclimate.com/github/sanger/record_loader/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/0ce827d110dfced197ab/test_coverage)](https://codeclimate.com/github/sanger/record_loader/test_coverage)
[![Ruby](https://img.shields.io/badge/ruby-3.0-e2242a?logo=ruby)](https://ruby-doc.org/3.0.6/)
[![Test Coverage](https://codecov.io/gh/sanger/record_loader/graph/badge.svg?token=AO7PUU5SB0)](https://codecov.io/gh/sanger/record_loader)
[![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](https://rubydoc.info/github/sanger/record_loader)

RecordLoader provides a simple and standardized way of populating databases from information described in a series of
Expand Down Expand Up @@ -213,7 +211,7 @@ also run `bin/console` for an interactive prompt that will allow you to experime

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
version number in `version.rb`, ensure the CHANGELOG.md is updated and that everything is committed.
Then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push
Then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push
the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing
Expand Down
6 changes: 2 additions & 4 deletions record_loader.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3.12'
spec.add_development_dependency 'rubocop', '~> 1.56'
spec.add_development_dependency 'rubocop-rspec', '~> 2.24'
spec.add_development_dependency 'yard', '~> 0.9'
# Pin simplecov to ~> 0.17 until CodeClimate compatibility
# issues resolved:
# https://github.com/codeclimate/test-reporter/issues/413
spec.add_development_dependency 'simplecov', '~> 0.22'
spec.add_development_dependency 'simplecov-lcov', '~> 0.9'
spec.add_development_dependency 'yard', '~> 0.9'
end
Loading