From 1580671f8567c2ef41e4cda55c05ce4b6f6a663d Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Thu, 5 Sep 2024 21:16:42 +0530 Subject: [PATCH] Set up CI for `2.5-stable` branch (#800) Merge pull request 800 --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 14 -------------- Gemfile | 1 + 3 files changed, 30 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..e4ed5c41d9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: Continuous Integration +on: + push: + branches: + - "2.5-stable" + pull_request: + branches: + - "2.5-stable" +jobs: + build: + name: "Test with Jekyll ${{ matrix.jekyll }} (Ruby ${{ matrix.ruby }})" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + jekyll: ["~> 3.9", "~> 4.2"] + ruby: ["2.7", "3.3"] + env: + JEKYLL_VERSION: ${{ matrix.jekyll }} + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: "Set Up Ruby ${{ matrix.ruby }}" + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run tests + run: script/cibuild diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 455e5778e1..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.6 - - 2.4 - -before_install: gem update --system --no-document -install: script/bootstrap -script: script/cibuild - -env: - matrix: - - JEKYLL_VERSION="~> 3.5" - - JEKYLL_VERSION=">= 4.0.0.pre.alpha1" diff --git a/Gemfile b/Gemfile index 46cdbf0279..cbec53b670 100644 --- a/Gemfile +++ b/Gemfile @@ -4,3 +4,4 @@ source "https://rubygems.org" gemspec gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"] +gem "kramdown-parser-gfm" if ENV["JEKYLL_VERSION"] == "~> 3.9"