Skip to content

Commit

Permalink
Merge pull request #65 from orien/github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions for CI
  • Loading branch information
gshutler authored Oct 29, 2024
2 parents 1de7cbf + 460a32c commit 3ed4d04
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Tests
on: [ push, pull_request ]
jobs:
test:
name: Test (Ruby ${{ matrix.ruby }})
runs-on: ubuntu-${{ matrix.ubuntu }}
strategy:
fail-fast: false
matrix:
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4', '2.3', 'jruby-9.4' ]
ubuntu: [ 'latest' ]
include:
- { ruby: '2.2', ubuntu: '20.04' }
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# UserAgent

[![Build Status](https://travis-ci.org/gshutler/useragent.svg?branch=master)](https://travis-ci.org/gshutler/useragent)
[![Build Status](https://github.com/gshutler/useragent/actions/workflows/test.yml/badge.svg)](https://github.com/gshutler/useragent/actions/workflows/test.yml)
[![Gem Version](https://badge.fury.io/rb/useragent.svg)](http://badge.fury.io/rb/useragent)

UserAgent is a Ruby library that parses and compares HTTP User Agents.
Expand Down
2 changes: 1 addition & 1 deletion useragent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gem::Specification.new do |s|

s.files = Dir["LICENSE", "README.md", "lib/**/*.rb"]

s.add_development_dependency "rake", "~> 10.0"
s.add_development_dependency "rake", "~> 13.0"
s.add_development_dependency "rspec", "~> 3.0"

s.authors = ["Joshua Peek", "Garry Shutler"]
Expand Down

0 comments on commit 3ed4d04

Please sign in to comment.