Skip to content

Commit

Permalink
Merge pull request #191 from tagliala/chore/move-to-github-actions
Browse files Browse the repository at this point in the history
Drop Ruby 2.2 and move to GitHub Actions
  • Loading branch information
senny authored Jun 26, 2024
2 parents ecb4f8c + 0cb2f62 commit 6fb21a5
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 9 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Ruby tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
name: Tests
runs-on: 'ubuntu-latest'
strategy:
matrix:
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
channel: ['stable']

include:
- ruby-version: 'head'
channel: 'experimental'

env:
BUNDLE_GEMFILE: gemfiles/ci.gemfile

continue-on-error: ${{ matrix.channel != 'stable' }}

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

8 changes: 7 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ PATH
GEM
remote: https://rubygems.org/
specs:
mini_portile2 (2.8.7)
minitest (5.20.0)
nokogiri (1.16.5)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.5-arm64-darwin)
racc (~> 1.4)
ostruct (0.6.0)
racc (1.8.0)
rake (13.1.0)
rexml (3.2.6)
Expand All @@ -19,11 +24,12 @@ GEM
rexml

PLATFORMS
arm64-darwin-23
arm64-darwin

DEPENDENCIES
bundler (>= 1.6)
minitest (~> 5.4)
ostruct
rake (~> 13.0)
sablon!
xml-simple
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sablon

[![Gem Version](https://badge.fury.io/rb/sablon.svg)](http://badge.fury.io/rb/sablon)
[![Build Status](https://travis-ci.org/senny/sablon.svg?branch=master)](https://travis-ci.org/senny/sablon)
[![Build Status](https://github.com/senny/sablon/actions/workflows/ruby.yml/badge.svg)](https://github.com/senny/sablon/actions)

Is a document template processor for Word `docx` files. It leverages Word's
built-in formatting and layouting capabilities to make template creation easy
Expand Down
3 changes: 3 additions & 0 deletions gemfiles/ci.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gemspec path: "../"
3 changes: 2 additions & 1 deletion sablon.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.2'
spec.required_ruby_version = '>= 2.3'

spec.metadata['rubygems_mfa_required'] = 'true'

Expand All @@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "minitest", "~> 5.4"
spec.add_development_dependency "xml-simple"
spec.add_development_dependency "ostruct"
end
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require "xmlsimple"
require "json"
require "pathname"
require "ostruct"

$: << File.expand_path('../../lib', __FILE__)
require "sablon"
Expand Down

0 comments on commit 6fb21a5

Please sign in to comment.