Skip to content

Commit 84b79a2

Browse files
committed
Switch from Travis CI to GitHub CI
It seems Travis CI is no longer available for pull requests and forks to run tests. In order for this to work by default and give feedback early, try GitHub CI instead. While at it, remove Ruby 2.3 and 2.4 from the test matrix because those were failing with: ``` kramdown was resolved to 2.5.1, which depends on Ruby (>= 2.5) Current Ruby version: Ruby (= 2.4.10) ```
1 parent fc051a9 commit 84b79a2

File tree

2 files changed

+63
-39
lines changed

2 files changed

+63
-39
lines changed

.github/workflows/CI.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
on:
3+
push:
4+
5+
jobs:
6+
lint:
7+
name: Rubocop
8+
runs-on: ubuntu-latest
9+
steps:
10+
11+
- uses: actions/checkout@v4
12+
13+
- name: Install Rubocop
14+
run: |
15+
sudo gem install rubocop -v '~> 1.70'
16+
sudo gem install rubocop-performance -v '~> 1.23'
17+
18+
- name: Run Rubocop
19+
run: rubocop --fail-level error
20+
21+
test:
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
include:
26+
- ruby: '2.5'
27+
- ruby: '2.6'
28+
- ruby: '2.7'
29+
- ruby: '3.0'
30+
- ruby: '3.1'
31+
- ruby: '3.2'
32+
- ruby: jruby-head
33+
experimental: true
34+
35+
name: Ruby ${{ matrix.ruby }}
36+
continue-on-error: ${{ matrix.experimental == true }}
37+
runs-on: ubuntu-24.04
38+
steps:
39+
40+
- uses: actions/checkout@v4
41+
42+
# https://github.com/ruby/setup-ruby
43+
- uses: ruby/setup-ruby@v1
44+
with:
45+
ruby-version: ${{ matrix.ruby }}
46+
47+
- name: Install packages
48+
run: |
49+
ruby --version
50+
gem --version
51+
gem install rake
52+
wget https://github.com/htacg/tidy-html5/releases/download/5.4.0/tidy-5.4.0-64bit.deb
53+
sudo apt purge libtidy-0.99-0
54+
sudo dpkg -i tidy-5.4.0-64bit.deb
55+
56+
- name: Install dependencies
57+
run: |
58+
rake gemspec
59+
echo -e 'source "http://www.rubygems.org"\n\ngemspec' > Gemfile
60+
bundle install
61+
62+
- name: Run tests
63+
run: ruby -Ilib:test test/test_*

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)