name: CI

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-18.04

    services:
      memcached:
        image: memcached
        ports:
          - 11211:11211

    strategy:
      fail-fast: false
      matrix:
        ruby: [2.7.6, 3.0.4, 3.1.2]

    steps:
    - name: Checkout code
      uses: actions/checkout@v2

    - name: Setup Ruby ${{ matrix.ruby }}
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true

    - name: Run tests
      run: bundle exec rake

name: CI

on:
  push:
  pull_request:

jobs:
  build:
    runs-on: ubuntu-22.04

    services:
      memcached:
        image: memcached
        ports:
          - 11211:11211

    strategy:
      fail-fast: false
      matrix:
        ruby: [2.7.6, 3.0.4, 3.1.2]

    steps:
    - name: Checkout code
      uses: actions/checkout@v2

    - name: Setup Ruby ${{ matrix.ruby }}
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true

    - name: Run tests
      run: bundle exec rake

Use Ubuntu 22.04 on GH Actions
Use Ubuntu 22.04 on GH Actions

The 18.04 image is deprecated and will soon be removed, see
https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/
