Skip to content

Commit

Permalink
Improve CI workflow configuration (jekyll#609)
Browse files Browse the repository at this point in the history
Merge pull request 609
  • Loading branch information
ashmaroli authored Oct 4, 2021
1 parent 4df270b commit ccd8c27
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: "Build"
on: [push]
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: "Test with Jekyll ${{ matrix.jekyll }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
jekyll: ["~> 3.9", "~> 4.2"]
env:
JEKYLL_VERSION: ${{ matrix.jekyll }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set Up Ruby 2.5
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
- name: 'Install dependencies'
run: bundle install
env:
JEKYLL_VERSION: ${{ matrix.jekyll }}
- name: 'Run tests'
bundler-cache: true
- name: Run tests
run: script/cibuild
env:
JEKYLL_VERSION: ${{ matrix.jekyll }}

0 comments on commit ccd8c27

Please sign in to comment.