Commit 1377f54
Changed files (7)
.github/workflows/ci.yml
@@ -0,0 +1,21 @@
+name: ci
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby-version: ['2.5', '2.6', '2.7', '3.0']
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby-version }}
+ bundler-cache: true
+ - name: Running tests…
+ run: sh bin/test
.github/dependabot.yml
@@ -0,0 +1,9 @@
+---
+version: 2
+updates:
+ - package-ecosystem: "bundler"
+ directory: "/"
+ schedule:
+ interval: "daily"
+ assignees:
+ - "xlgmokha"
bin/console
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+
+require 'bundler/setup'
+require 'xml/kit'
+
+# You can add fixtures and/or initialization code here to make experimenting
+# with your gem easier. You can also use a different console, if you like.
+
+# (If you use this, don't forget to add pry to your Gemfile!)
+# require "pry"
+# Pry.start
+
+require 'irb'
+IRB.start(__FILE__)
bin/setup
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+[ -z "$DEBUG" ] || set -x
+
+cd "$(dirname "$0")/.."
+
+bundle install
bin/test
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+[ -z "$DEBUG" ] || set -x
+
+cd "$(dirname "$0")/.."
+
+bundle exec rake spec
spec/spec_helper.rb
@@ -1,5 +1,3 @@
-require "codeclimate-test-reporter"
-CodeClimate::TestReporter.start
require 'spank'
RSpec.configure do |config|
spank.gemspec
@@ -23,5 +23,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", '~> 12.3'
spec.add_development_dependency "rspec", '~> 3.1'
spec.add_development_dependency "simplecov", '~> 0.9'
- spec.add_development_dependency "codeclimate-test-reporter"
end