Skip to content

Commit

Permalink
Migrate CI to GitHub Actions (#177)
Browse files Browse the repository at this point in the history
Merge pull request 177
  • Loading branch information
ashmaroli authored Dec 5, 2024
1 parent 8e6ce0b commit 32a7fa5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 26 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continuous Integration

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
name: "Run Tests (Jekyll ${{ matrix.jekyll_version }}, Ruby ${{ matrix.ruby_version }})"
runs-on: "ubuntu-latest"
env:
JEKYLL_VERSION: ${{ matrix.jekyll_version }}
strategy:
fail-fast: false
matrix:
ruby_version:
- "2.7"
- "3.3"
jekyll_version:
- "~> 3.9"
- "~> 4.0"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: "Set up ${{ matrix.ruby_version }}"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Run Unit Tests
run: bundle exec rake test
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

7 changes: 2 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
source "https://rubygems.org"
gemspec

if ENV["GH_PAGES"]
gem "github-pages"
elsif ENV["JEKYLL_VERSION"]
gem "jekyll", ENV["JEKYLL_VERSION"]
end
gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"]
gem "kramdown-parser-gfm" if ENV["JEKYLL_VERSION"] == "~> 3.9"

0 comments on commit 32a7fa5

Please sign in to comment.