Skip to content

Update actions/checkout action to v4 #280

Update actions/checkout action to v4

Update actions/checkout action to v4 #280

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: "Build & Test"
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.5, 2.7, 3.0]
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0 # for bin/rubocop_changes
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Recreate Ruby Bundler cache
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-bundler-${{ hashFiles('**/Gemfile*') }}
restore-keys: |
${{ runner.os }}-bundler-
- name: Install dependencies
run: bundle install --path ./vendor/bundle
- name: Run tests
run: bundle exec rspec