From 8c61e5189876c8343ffdc6fceab09a2cfd8c5a65 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 27 Mar 2020 10:25:16 +0900 Subject: [PATCH 1/4] Use GitHub Actions instead of Travis CI --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..51b085b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: test + +on: [push, pull_request] + +jobs: + build: + name: build (${{ matrix.ruby }} / ${{ matrix.os }}) + strategy: + matrix: + ruby: [ 2.7, 2.6, 2.5, 2.4, head ] + os: [ ubuntu-latest, macos-latest ] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@master + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Install dependencies + run: | + gem install bundler --no-document + bundle install + - name: Run test + run: rake test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e932031..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -sudo: false -language: ruby -cache: bundler -rvm: - - 2.6.3 -before_install: gem install bundler -v 2.0.2 From 3ab3add800df62ba227c00ce0665722b7df26940 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 27 Mar 2020 11:33:57 +0900 Subject: [PATCH 2/4] Fixed superclass missmatch --- lib/delegate/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/delegate/version.rb b/lib/delegate/version.rb index 456e8f7..1f0b4e0 100644 --- a/lib/delegate/version.rb +++ b/lib/delegate/version.rb @@ -1,3 +1,3 @@ -class Delegator +class Delegator < BasicObject VERSION = "0.1.0" end From 3d1af47d43fcc197b74958e3b7b48ebbfcd46c66 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 11 Jun 2020 10:18:38 +0900 Subject: [PATCH 3/4] Drop to under the Ruby 2.7 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51b085b..360662b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: [ 2.7, 2.6, 2.5, 2.4, head ] + ruby: [ 2.7, head ] os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: From ce4bbb2355d4d7c602360063b522a6e9b5ee87a5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 11 Jun 2020 10:54:56 +0900 Subject: [PATCH 4/4] The current master branch is only working with Ruby 2.8/3.0 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 360662b..6cb022a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: [ 2.7, head ] + ruby: [ head ] os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: