diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 343148684f..52e12163e5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 }}