Skip to content

Commit

Permalink
CI on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda authored and robin850 committed May 31, 2024
1 parent 3e3f0b5 commit ad656aa
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 31 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: test

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false

matrix:
ruby-version:
- '1.9'
- '2.0'
- '2.1'
- '2.2'
- '2.3'
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- ruby-head

steps:
- run: sudo apt-get install -y tidy tcl tk

- uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}

- run: bundle exec rake
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion redcarpet.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Gem::Specification.new do |s|
s.executables = ["redcarpet"]
s.require_paths = ["lib"]

s.add_development_dependency "rake", "~> 13"
s.add_development_dependency "rake"
s.add_development_dependency "rake-compiler", "~> 1.1"
s.add_development_dependency "test-unit", "~> 3.5"
end

0 comments on commit ad656aa

Please sign in to comment.