Skip to content

Commit

Permalink
Merge pull request #148 from twingly/run-ci-on-github-actions
Browse files Browse the repository at this point in the history
Run CI on GitHub actions
  • Loading branch information
walro committed Dec 1, 2020
2 parents 16834e4 + 15cdf3c commit 08fa22c
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 23 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-build-and-install-gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI build and install gem

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-18.04

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2

- name: Build and install gem
run: gem build *.gemspec && gem install *.gem
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-18.04

strategy:
fail-fast: false
matrix:
include:
- { ruby: 2.5.8 }
- { ruby: 2.6.6 }
- { ruby: 2.7.2 }
- { ruby: head, allow-failure: true }
- { ruby: jruby-9.2.13.0 }
- { ruby: jruby-head, allow-failure: true }

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run tests
run: bundle exec rake
continue-on-error: ${{ matrix.allow-failure || false }}
21 changes: 0 additions & 21 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 @@
# Twingly::URL

[![Build Status](https://travis-ci.org/twingly/twingly-url.svg?branch=master)](https://travis-ci.org/twingly/twingly-url)
[![GitHub Build Status](https://github.com/twingly/twingly-url/workflows/CI/badge.svg)](https://github.com/twingly/twingly-url/actions)

Twingly URL tools.

Expand Down
2 changes: 1 addition & 1 deletion twingly-url.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.summary = "Ruby library for URL handling"
s.description = "Twingly URL tools"
s.license = "MIT"
s.required_ruby_version = "~> 2.5"
s.required_ruby_version = ">= 2.5"

s.add_dependency "addressable", "~> 2.6"
s.add_dependency "public_suffix", ">= 3.0.1", "< 5.0"
Expand Down

0 comments on commit 08fa22c

Please sign in to comment.