Skip to content

Merge pull request #249 from Homebrew/dependabot/github_actions/githu… #512

Merge pull request #249 from Homebrew/dependabot/github_actions/githu…

Merge pull request #249 from Homebrew/dependabot/github_actions/githu… #512

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.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