From ffba035b0d4b8f6ac9c71b8a2fd6c66e594a144f Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 3 Aug 2021 13:06:57 +0200 Subject: [PATCH 1/4] CI: Add GitHub Actions --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ .travis.yml | 15 --------------- README.md | 4 ++-- 3 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fed7b95 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Ruby CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ["3.0", "2.7", "2.6", "2.5", "jruby-head", "ruby-head"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8c2d2cb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: ruby -bundler_args: --without doc -rvm: - - "2.5" - - "2.6" - - "2.7" - - ruby-head - - jruby-head -matrix: - allow_failures: - - rvm: ruby-head - - rvm: jruby-head -notifications: - email: - - github@elskwid.net diff --git a/README.md b/README.md index b111969..b03d9dd 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ [stable]: https://github.com/carr/phone/tree/v1.2.3 [gem-beta]: https://rubygems.org/gems/phone/versions/1.3.0.beta1 [beta]: https://github.com/carr/phone/tree/v1.3.0.beta1/ -[travis]: https://travis-ci.org/carr/phone +[ci]: https://github.com/carr/phone/actions/workflows/ci.yml # phone [![Beta Gem Version](https://img.shields.io/badge/beta-v1.3.0.beta1-blue.svg)][gem-beta] [![Gem Version](https://img.shields.io/gem/v/phone.svg)][gem] -[![Build Status](https://img.shields.io/travis/carr/phone.svg)][travis] +[![Build Status](https://github.com/carr/phone/actions/workflows/ci.yml/badge.svg)][ci] Parsing, validating and creating phone numbers From 51727741f43bcc1fdefbc47e5a83e06a2fe5f6fa Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 21 Sep 2021 09:11:52 +0200 Subject: [PATCH 2/4] fix: Avoid double bundle install ruby/setup-ruby's bundler-cache does it. --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fed7b95..d59f558 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,5 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: Install dependencies - run: bundle install - name: Run tests run: bundle exec rake From 148d8d45969db3f51866984b63b9017a976704d2 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Wed, 19 Apr 2023 12:36:31 +0200 Subject: [PATCH 3/4] CI: Use Ruby 3.2, 3.1 ...and latest version of actions/checkout. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d59f558..9a00b7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,10 @@ jobs: strategy: matrix: - ruby-version: ["3.0", "2.7", "2.6", "2.5", "jruby-head", "ruby-head"] + ruby-version: ["3.2", "3.1", "3.0", "2.7", "jruby-head", "ruby-head"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: From 7114f2b66558079f6d30ed9187479af7e7b97279 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Wed, 9 Oct 2024 16:12:37 +0200 Subject: [PATCH 4/4] CI: Add Ruby 3.3 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a00b7c..eff66d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,10 @@ jobs: strategy: matrix: - ruby-version: ["3.2", "3.1", "3.0", "2.7", "jruby-head", "ruby-head"] + ruby-version: ["3.3", "3.2", "3.1", "3.0", "2.7", "jruby-head", "ruby-head"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: