name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    name: Build and lint
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.1.0"
      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
          restore-keys: |
            ${{ runner.os }}-gems-
      - name: Build the site and lint the CSS
        run: |
          gem install bundler
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3
          bundle exec jekyll build --verbose
          bundle exec rubocop
          bundle exec scss-lint

name: CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    name: Build and lint
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.1.2"
          bundler-cache: true
      - name: Build the site and lint the CSS
        run: |
          gem install bundler
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3
          bundle exec jekyll build --verbose
          bundle exec rubocop
          bundle exec scss-lint

Simplify the GitHub Actions caching and bump Ruby version.
Simplify the GitHub Actions caching and bump Ruby version.
