Skip to content

Merge pull request #165 from Homebrew/dependabot/github_actions/ruby/… #337

Merge pull request #165 from Homebrew/dependabot/github_actions/ruby/…

Merge pull request #165 from Homebrew/dependabot/github_actions/ruby/… #337

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.0"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@f321cf5a4d1533575411f8752cf25b86478b0442 # v1.193.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build gem
run: bundle exec rake
- name: Run RuboCop
run: bundle exec rake rubocop
- name: Run tests
run: bundle exec rake spec