From ce2cd06eb49a59463e961c48df6c63597d839d2a Mon Sep 17 00:00:00 2001 From: Ben Fritsch Date: Thu, 6 Feb 2025 15:16:47 +0100 Subject: [PATCH] add GitHub Actions --- .github/workflows/ruby.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 13 ------------- README.md | 2 +- 3 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/ruby.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 00000000..5ec198f4 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + name: "Ruby ${{ matrix.ruby-version }}" + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.2', '3.3', '3.4'] + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run tests + run: bundle exec rake + env: + MT_COMPAT: 'true' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6c807a5a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: ruby -rvm: -- 2.3.8 -- 2.4.10 -- 2.5.8 -- 2.6.6 -- 2.7.2 -- ruby-head -before_install: -- gem install bundler -v '~> 2.0' -script: "bundle exec rake" -notifications: - email: false diff --git a/README.md b/README.md index 46654d26..c671cd21 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Prmd [![Travis Status](https://travis-ci.org/interagent/prmd.svg)](https://travis-ci.org/interagent/prmd) +# Prmd [![Gem Version](https://badge.fury.io/rb/prmd.svg)](http://badge.fury.io/rb/prmd)