Skip to content

workflows: pin setup-ruby action #939

workflows: pin setup-ruby action

workflows: pin setup-ruby action #939

Workflow file for this run

name: CI
on:
push:
branches: master
pull_request:
jobs:
tests:
strategy:
matrix:
platform: ["ubuntu-latest", "macos-latest"]
ruby: [2.6, 2.7, 3.0, 3.1, 3.2, 3.3]
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Git repository
uses: actions/checkout@main
- name: Set up Ruby
uses: ruby/setup-ruby@70da3bbf44ac06db1b0547ce2acc9380a5270d1e # v1.175.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bundle exec rake
- name: Run RuboCop
run: bundle exec rubocop -D lib/