Skip to content

Commit 0a8f550

Browse files
committed
Use GitHub actions for CI and update dependencies.
1 parent 057bd8f commit 0a8f550

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This workflow runs continuous CI across different versions of ruby on all branches and pull requests to develop.
2+
3+
name: CI
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the develop branch
8+
push:
9+
branches: [ '**' ]
10+
pull_request:
11+
branches: [ develop ]
12+
workflow_dispatch:
13+
14+
jobs:
15+
tests:
16+
name: Ruby ${{ matrix.ruby }}
17+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
18+
runs-on: ubuntu-latest
19+
env:
20+
CI: true
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
ruby:
25+
- 2.4
26+
- 2.5
27+
- 2.6
28+
- 2.7
29+
- ruby-head
30+
- jruby
31+
steps:
32+
- name: Clone repository
33+
uses: actions/checkout@v2
34+
- name: Set up Ruby
35+
uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: ${{ matrix.ruby }}
38+
- name: Install dependencies
39+
run: bundle install --jobs 4 --retry 3
40+
- name: Run tests
41+
run: bundle exec rspec spec
42+

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
JSON-LD with preloaded contexts.
33

44
[![Gem Version](https://badge.fury.io/rb/json-ld-preloaded.png)](https://badge.fury.io/rb/json-ld-preloaded)
5-
[![Build Status](https://secure.travis-ci.org/ruby-rdf/json-ld-preloaded.png?branch=master)](https://travis-ci.org/ruby-rdf/json-ld-preloaded)
5+
[![Build Status](https://github.com/ruby-rdf/json-ld-preloaded/workflows/CI/badge.svg?branch=develop)](https://github.com/ruby-rdf/json-ld-preloaded/actions?query=workflow%3ACI)
6+
[![Coverage Status](https://coveralls.io/repos/ruby-rdf/json-ld-preloaded/badge.svg)](https://coveralls.io/github/ruby-rdf/json-ld-preloaded)
7+
[![Gitter chat](https://badges.gitter.im/ruby-rdf/rdf.png)](https://gitter.im/ruby-rdf/rdf)
68

79
## Features
810

json-ld-preloaded.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Gem::Specification.new do |gem|
1919
gem.require_paths = %w(lib)
2020
gem.test_files = Dir.glob('spec/**/*.rb') + Dir.glob('spec/test-files/*')
2121

22-
gem.required_ruby_version = '>= 2.2.2'
22+
gem.required_ruby_version = '>= 2.4'
2323
gem.requirements = []
2424
gem.add_runtime_dependency 'rdf', '~> 3.1'
2525
gem.add_runtime_dependency 'json-ld', '~> 3.1'
26-
gem.add_development_dependency 'rspec', '~> 3.9'
27-
gem.add_development_dependency 'yard' , '~> 0.9.20'
26+
gem.add_development_dependency 'rspec', '~> 3.10'
27+
gem.add_development_dependency 'yard' , '~> 0.9'
2828

2929
gem.post_install_message = nil
3030
end

0 commit comments

Comments
 (0)