Skip to content

Commit 53000c7

Browse files
authored
Merge pull request #3 from toshimaru/migrate-travis-to-action
Migrate from TravisCI to GitHub Actions
2 parents eaf1506 + 1acddc6 commit 53000c7

File tree

5 files changed

+41
-21
lines changed

5 files changed

+41
-21
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
ruby: ['2.7', '3.0', '3.1', '3.2']
14+
# gemfile:
15+
# - gemfiles/jekyll_3.9.gemfile
16+
# - gemfiles/jekyll_4.1.gemfile
17+
# - gemfiles/jekyll_4.2.gemfile
18+
# - gemfiles/jekyll_4.3.gemfile
19+
# env:
20+
# BUNDLE_GEMFILE: ${{ matrix.gemfile }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Ruby ${{ matrix.ruby }}
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby }}
28+
bundler-cache: true
29+
- name: Run Test
30+
run: bundle exec rake

.travis.yml

-8
This file was deleted.

Gemfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
source "https://rubygems.org"
1+
# frozen_string_literal: true
22

3-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3+
source "https://rubygems.org"
44

55
# Specify your gem's dependencies in kramdown-amp.gemspec
66
gemspec
7+
8+
gem "bundler"
9+
gem "rake"
10+
gem "minitest"

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018 toshimaru
3+
Copyright (c) 2018-2023 toshimaru
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

kramdown-amp.gemspec

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

3-
lib = File.expand_path("../lib", __FILE__)
4-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5-
require "kramdown/amp/version"
3+
require_relative 'lib/kramdown/amp/version'
64

75
Gem::Specification.new do |spec|
86
spec.name = "kramdown-amp"
@@ -22,12 +20,8 @@ Gem::Specification.new do |spec|
2220
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2321
spec.require_paths = ["lib"]
2422

25-
spec.required_ruby_version = '>= 2.4'
23+
spec.required_ruby_version = '>= 2.7'
2624

27-
spec.add_dependency "kramdown"
28-
spec.add_dependency "fastimage"
29-
30-
spec.add_development_dependency "bundler", ">= 2.0"
31-
spec.add_development_dependency "rake"
32-
spec.add_development_dependency "minitest"
25+
spec.add_dependency 'fastimage'
26+
spec.add_dependency 'kramdown'
3327
end

0 commit comments

Comments
 (0)