Skip to content

Commit 6c73fa2

Browse files
committed
Migrate TravisCI to GitHub Actions
This repo hasn't received much attention recently. As such, the TravisCI yaml file was referencing [EOL](https://www.ruby-lang.org/en/downloads/branches/) versions of ruby. Moreover, TravisCI itself isn't generally used for open source anymore. There are heavy restrictions on build minutes, as noted [here](jekyll/jekyll#8492) in the core Jekyll project. This PR does the following: * Removes `.travis.yml`. We won't run jobs on TravisCI anymore. * Replaces it with `.github/workflows/ci.yml`. We'll start running CI on GitHub Actions. * Updates Ruby versions to those currently supported. This matches the ones tested in the [core jekyll project](https://github.com/jekyll/jekyll/blob/796ae15c31147d1980662744ef0f19a15a27cdee/.github/workflows/ci.yml#L20-L28). This is making progress toward jekyll#192. I plan to work toward supporting Ruby 3 and Numo in classifier-reborn, but the first step is getting CI working with the existing code.
1 parent c0e81d2 commit 6c73fa2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- "*-stable"
8+
pull_request:
9+
branches:
10+
- master
11+
- "*-stable"
12+
13+
jobs:
14+
ci:
15+
name: "Run Tests (${{ matrix.label }})"
16+
runs-on: "ubuntu-latest"
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- label: Ruby 2.7
22+
ruby_version: "2.7"
23+
- label: Ruby 3.0
24+
ruby_version: "3.0"
25+
- label: Ruby 3.1
26+
ruby_version: "3.1"
27+
- label: JRuby 9.3.4.0
28+
ruby_version: "jruby-9.3.4.0"
29+
steps:
30+
- name: Checkout Repository
31+
uses: actions/checkout@v3
32+
- name: "Set up ${{ matrix.label }}"
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
ruby-version: ${{ matrix.ruby_version }}
36+
bundler-cache: true
37+
- name: Run Minitest based tests
38+
run: bash script/test

0 commit comments

Comments
 (0)