CI: Use github actions and non-EOL ruby version

* travis-ci.org is going away, so replace it with github actions
* ruby 2.4 is no longer supported upstream, so upgrade to 2.6
This commit is contained in:
Dylan Thacker-Smith
2021-03-08 10:21:06 -08:00
parent ca2050446c
commit 40bf603bfb
2 changed files with 20 additions and 17 deletions

20
.github/workflows/docs.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Build Docs
on:
push: {}
pull_request:
types: [opened, synchronize]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.owner.login != 'Shopify'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
bundler-cache: true
- run: bundle exec jekyll build --trace

View File

@@ -1,17 +0,0 @@
sudo: false
language: ruby
cache: bundler
rvm: 2.4
before_install:
- gem update --system
install: bundle install
script: bundle exec jekyll build --trace
branches:
only:
- gh-pages
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true