diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..57d1dfd --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0bb82fa..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: ruby -cache: bundler -rvm: - - &latest_ruby 2.7 - - 2.5 - -env: - - JEKYLL_VERSION="~> 3.8" - -matrix: - include: - - # GitHub Pages - rvm: 2.5.3 - env: GH_PAGES=true - - rvm: *latest_ruby - env: JEKYLL_VERSION=">= 4.0.0" - -before_install: - - gem update --system - - bundle update -script : script/cibuild diff --git a/Gemfile b/Gemfile index b5abda9..cbec53b 100644 --- a/Gemfile +++ b/Gemfile @@ -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"