summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWeston Ganger <[email protected]>2021-12-22 12:04:50 -0800
committerJosef Šimánek <[email protected]>2022-02-08 21:49:49 +0100
commit58c7860859e4c2e2ac00733b73cbee774c0feefb (patch)
treefbcd63961f3071daccbb280d8b14ecfbb9070ab4
parent1def0a01e9af324ecf202e6542fa77920dc11662 (diff)
downloadcaxlsx-58c7860859e4c2e2ac00733b73cbee774c0feefb.tar.gz
caxlsx-58c7860859e4c2e2ac00733b73cbee774c0feefb.zip
Switch CI to Github Actions
-rw-r--r--.github/workflows/test.yml42
-rw-r--r--.travis.yml38
-rw-r--r--README.md2
-rw-r--r--axlsx.gemspec2
4 files changed, 44 insertions, 40 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 00000000..a5beb68a
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,42 @@
+name: Test
+on:
+ push:
+ branches: ['*']
+ pull_request:
+ branches: ['*']
+
+jobs:
+ test_ruby_versions:
+ runs-on: ubuntu-20.04
+
+ continue-on-error: ${{ matrix.allow_failures || false }}
+
+ env:
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}" ### allows adding gemfile: to the matrix, bundler will automatically pick this up
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - ruby: 2.3
+ - ruby: 2.4
+ - ruby: 2.5
+ - ruby: 2.6
+ - ruby: 2.7
+ - ruby: "3.0" ### must be quoted otherwise will be treated as "3" which resolves to latest 3.x version
+ - ruby: 3.1
+ - ruby: jruby-9.2
+ - ruby: jruby-9.3
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: "${{ matrix.ruby }}"
+ bundler-cache: true
+
+ - name: Run tests
+ run: |
+ bundle exec rake
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 23b66c5e..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-language: ruby
-sudo: required
-dist: bionic
-group: edge
-cache: bundler
-bundler_args: --without profile
-
-notifications:
- irc: "irc.freenode.org#axlsx"
- email:
- recipients:
- on_success: always
-
-matrix:
- include:
- - rvm: 2.3.8
- - rvm: 2.4.10
- - rvm: 2.5.8
- - rvm: 2.6.6
- - rvm: 2.7.1
- - rvm: 3.0.0
- - rvm: jruby-19mode
- - rvm: jruby-9.1.17.0
- - rvm: jruby-9.2.16.0
- - rvm: ruby-head
- - rvm: jruby-head
- allow_failures:
- - rvm: ruby-head
- - rvm: jruby-9.1.17.0
- - rvm: jruby-9.2.16.0
- - rvm: jruby-head
-
-env:
- global:
- - JRUBY_OPTS="-Xcli.debug=true --debug"
-
-# https://github.com/jruby/jruby/wiki/FAQs#why-is-jruby-so-slow-to-install-via-rvm
diff --git a/README.md b/README.md
index 34929c91..3c87d316 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# Caxlsx (Community Continued Version)
-[![Build Status](https://travis-ci.com/caxlsx/caxlsx.svg?branch=master)](https://travis-ci.com/caxlsx/caxlsx)
+[![Build Status](https://github.com/caxlsx/caxlsx/workflows/Test/badge.svg)](https://github.com/caxlsx/caxlsx/actions)
[![Gem
Version](https://badge.fury.io/rb/caxlsx.svg)](http://badge.fury.io/rb/caxlsx)
![Total downloads](http://ruby-gem-downloads-badge.herokuapp.com/caxlsx?type=total)
diff --git a/axlsx.gemspec b/axlsx.gemspec
index 2b5c96ec..5bde116a 100644
--- a/axlsx.gemspec
+++ b/axlsx.gemspec
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'yard', "~> 0.9.8"
s.add_development_dependency 'kramdown', '~> 2.3'
- s.add_development_dependency 'timecop', "~> 0.8.1"
+ s.add_development_dependency 'timecop', "~> 0.9.0"
s.required_ruby_version = '>= 2.3'
s.require_path = 'lib'
end