Skip to content

Commit 32a7fa5

Browse files
authored
Migrate CI to GitHub Actions (#177)
Merge pull request 177
1 parent 8e6ce0b commit 32a7fa5

File tree

3 files changed

+35
-26
lines changed

3 files changed

+35
-26
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
test:
11+
name: "Run Tests (Jekyll ${{ matrix.jekyll_version }}, Ruby ${{ matrix.ruby_version }})"
12+
runs-on: "ubuntu-latest"
13+
env:
14+
JEKYLL_VERSION: ${{ matrix.jekyll_version }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
ruby_version:
19+
- "2.7"
20+
- "3.3"
21+
jekyll_version:
22+
- "~> 3.9"
23+
- "~> 4.0"
24+
steps:
25+
- name: Checkout Repository
26+
uses: actions/checkout@v4
27+
- name: "Set up ${{ matrix.ruby_version }}"
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby_version }}
31+
bundler-cache: true
32+
- name: Run Unit Tests
33+
run: bundle exec rake test

.travis.yml

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

Gemfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
source "https://rubygems.org"
44
gemspec
55

6-
if ENV["GH_PAGES"]
7-
gem "github-pages"
8-
elsif ENV["JEKYLL_VERSION"]
9-
gem "jekyll", ENV["JEKYLL_VERSION"]
10-
end
6+
gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"]
7+
gem "kramdown-parser-gfm" if ENV["JEKYLL_VERSION"] == "~> 3.9"

0 commit comments

Comments
 (0)