diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eff66d4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Ruby CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ["3.3", "3.2", "3.1", "3.0", "2.7", "jruby-head", "ruby-head"] + + steps: + - uses: actions/checkout@v4 + - 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: 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