Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run CI on GitHub actions #148

Merged
merged 4 commits into from
Dec 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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