From a1976b87d72f5319ff95dc0094cc480d3e150e02 Mon Sep 17 00:00:00 2001 From: Joakim Antman Date: Fri, 1 Oct 2021 23:40:29 +0300 Subject: [PATCH] GitHub actions for supported rubies --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 13 ------------- bin/rspec | 18 ------------------ 3 files changed, 29 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml delete mode 100755 bin/rspec diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0061ef9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: ci + +on: + push: + branches: + - "*" + pull_request: + branches: + - "*" + +jobs: + testgi: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ["2.6", "2.7", "3.0"] + + steps: + - uses: actions/checkout@v1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + + - name: Run tests + run: | + bundle install --jobs 4 --retry 3 + bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a46f47d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: ruby -before_install: gem install bundler -v 1.17.3 -install: bundle install -j 4 --retry 3 -script: - - bin/rspec -matrix: - include: - - rvm: "2.3.0" - - rvm: "2.3.3" - - rvm: "2.4.1" - - rvm: "2.5.7" - - rvm: "2.6.5" - - rvm: "2.7.0" diff --git a/bin/rspec b/bin/rspec deleted file mode 100755 index c593896..0000000 --- a/bin/rspec +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# -# This file was generated by Bundler. -# -# The application 'rspec' is installed as part of a gem, and -# this file is here to facilitate running it. -# - -require 'pathname' -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', - Pathname.new(__FILE__).realpath) - -require 'rubygems' -require 'bundler/setup' - -load Gem.bin_path('rspec-core', 'rspec')