Skip to content

Commit

Permalink
Migrate TravisCI to GitHub Actions
Browse files Browse the repository at this point in the history
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 tested Ruby versions to 2.7 and 3.0. This is a subset of the
   ruby versions currently supported/tested by [Jekyll
   core](https://github.com/jekyll/jekyll/blob/796ae15c31147d1980662744ef0f19a15a27cdee/.github/workflows/ci.yml#L20-L28).
   I plan to add support for Ruby 3.1 and jruby 9.3.4 in subsequent PRs,
   but doing so will require additional code changes and I wanted to
   start be getting the existing code under test in CI.

This is making progress toward jekyll#192. I plan to work toward supporting
Ruby 3 with fast svd support and Numo in classifier-reborn, but the
first step is getting CI working with the existing code.
  • Loading branch information
mkasberg committed May 6, 2022
1 parent c0e81d2 commit f6fcb94
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 33 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continuous Integration

on:
push:
branches:
- master
- "*-stable"
pull_request:
branches:
- master
- "*-stable"

jobs:
ci:
name: "Run Tests (${{ matrix.label }})"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
include:
- label: Ruby 2.7
ruby_version: "2.7"
- label: Ruby 3.0
ruby_version: "3.0"
# classifier-reborn requires changes to work with these Ruby versions.
# - label: Ruby 3.1
# ruby_version: "3.1"
# - label: JRuby 9.3.4.0
# ruby_version: "jruby-9.3.4.0"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: "Set up ${{ matrix.label }}"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Run Minitest based tests
run: bash script/test
services:
redis:
image: redis
ports:
- 6379:6379
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit f6fcb94

Please sign in to comment.